/* 网上车市 - CSS样式文件 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部导航栏 */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo img {
    height: 40px;
    margin-bottom: 2px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #ff6600;
}

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

.city-selector {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.current-city {
    color: #333;
    font-size: 14px;
    cursor: pointer;
}

.current-city i {
    color: #ff6600;
    margin-right: 5px;
}

.change-city,
.all-city {
    font-size: 12px;
    color: #ff6600;
    margin-left: 5px;
}

.header-nav {
    flex: 1;
    margin: 0 50px;
}

.header-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.header-nav a {
    font-size: 15px;
    color: #333;
    padding: 8px 0;
    position: relative;
}

.header-nav a:hover,
.header-nav a.active {
    color: #ff6600;
}

.header-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff6600;
}

.user-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login,
.btn-register,
.btn-logout {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login {
    background-color: #ff6600;
    color: #fff;
    border: none;
}

.btn-login:hover {
    background-color: #ff5500;
}

.btn-register {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.btn-register:hover {
    background-color: #eee;
}

.welcome {
    font-size: 14px;
    color: #333;
    margin-right: 10px;
}

.btn-logout {
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.btn-logout:hover {
    background-color: #f5f5f5;
    color: #ff6600;
}

/* 面包屑和搜索区 */
.breadcrumb-search {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-search .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb {
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #ff6600;
}

.breadcrumb .current {
    color: #333;
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}

.search-box input:focus {
    border-color: #ff6600;
}

.btn-search {
    padding: 8px 20px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-search:hover {
    background-color: #ff5500;
}

/* 筛选条件区 */
.filter-section {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.filter-group {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-label {
    width: 60px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-top: 2px;
}

.filter-content {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-item {
    padding: 5px 15px;
    font-size: 13px;
    color: #333;
    background-color: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-item:hover,
.filter-item.active {
    background-color: #ff6600;
    color: #fff;
}

.custom-price {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}

.custom-price input {
    width: 70px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

.custom-price span {
    font-size: 13px;
    color: #666;
}

.btn-confirm {
    padding: 5px 15px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.3s ease;
}

.btn-confirm:hover {
    background-color: #ff5500;
}

/* 车源列表区 */
.car-list-section {
    padding: 20px 0 40px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 2px solid #ff6600;
    margin-bottom: 20px;
}

.list-title {
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 13px;
    color: #666;
}

.sort-item {
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

.sort-item:hover,
.sort-item.active {
    color: #ff6600;
}

.sort-divider {
    color: #ddd;
}

.car-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.car-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.car-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.car-link {
    display: block;
}

.car-image {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-item:hover .car-image img {
    transform: scale(1.05);
}

.car-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    background-color: rgba(255, 102, 0, 0.9);
    color: #fff;
    font-size: 11px;
    border-radius: 3px;
}

.car-info {
    padding: 15px;
}

.car-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.car-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.car-details span {
    font-size: 12px;
    color: #999;
}

.car-details i {
    margin-right: 3px;
    color: #ccc;
}

.car-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-num {
    font-size: 20px;
    color: #ff0000;
    font-weight: bold;
}

.publish-time {
    font-size: 11px;
    color: #999;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 8px;
}

.page-item {
    padding: 8px 16px;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-item:hover,
.page-item.active {
    background-color: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

.page-ellipsis {
    padding: 8px 5px;
    color: #999;
}

.page-item.next {
    padding: 8px 20px;
}

/* 页脚 */
.site-footer {
    background-color: #333;
    color: #999;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-links {
    text-align: center;
    margin-bottom: 20px;
}

.footer-links a {
    color: #999;
    margin: 0 15px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copyright {
    text-align: center;
    font-size: 12px;
}

.footer-copyright p {
    margin: 5px 0;
}

/* 面包屑导航 */
.breadcrumb-section {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

/* 车辆详情页 */
.breadcrumb-section .breadcrumb {
    font-size: 14px;
}

.detail-section {
    padding: 30px 0;
}

.detail-content {
    display: flex;
    gap: 20px;
}

.detail-main {
    flex: 1;
}

.detail-sidebar {
    width: 300px;
}

.car-basic-info {
    display: flex;
    gap: 30px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.car-gallery {
    width: 600px;
}

.main-image {
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

.thumbnail-list {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 100px;
    height: 75px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #ff6600;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-summary {
    flex: 1;
}

.car-summary .car-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.car-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.tag-primary {
    background-color: #ff6600;
    color: #fff;
}

.tag-success {
    background-color: #52c41a;
    color: #fff;
}

.tag-info {
    background-color: #1890ff;
    color: #fff;
}

.price-display {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.main-price {
    margin-bottom: 10px;
}

.price-label {
    font-size: 14px;
    color: #666;
}

.price-value {
    font-size: 32px;
    color: #ff0000;
    font-weight: bold;
}

.price-info {
    font-size: 13px;
    color: #999;
}

.save-price {
    color: #ff6600;
    margin-left: 10px;
}

.car-params {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.param-item {
    display: flex;
    justify-content: space-between;
}

.param-label {
    font-size: 13px;
    color: #666;
}

.param-value {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.seller-info {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
}

.seller-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.seller-header h4 {
    font-size: 15px;
    color: #333;
}

.seller-name {
    font-size: 14px;
    color: #ff6600;
}

.seller-detail {
    margin-bottom: 15px;
}

.seller-detail p {
    font-size: 13px;
    color: #666;
    margin: 8px 0;
}

.seller-detail i {
    margin-right: 5px;
    color: #ff6600;
}

.seller-actions {
    display: flex;
    gap: 10px;
}

.btn-contact,
.btn-favorite,
.btn-reserve {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-contact {
    background-color: #ff6600;
    color: #fff;
}

.btn-contact:hover {
    background-color: #ff5500;
}

.btn-favorite {
    background-color: #fff;
    color: #ff6600;
    border: 1px solid #ff6600;
}

.btn-favorite:hover {
    background-color: #fff5f0;
}

.btn-reserve {
    background-color: #1890ff;
    color: #fff;
}

.btn-reserve:hover {
    background-color: #0d7dd9;
}

.car-description,
.car-configuration,
.detection-report {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.car-description p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.config-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.config-item {
    padding: 6px 15px;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 3px;
    font-size: 13px;
}

.report-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.report-item {
    text-align: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.report-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.report-value {
    font-size: 16px;
    font-weight: bold;
}

.report-value.status-pass {
    color: #52c41a;
}

.sidebar-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6600;
}

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

.recommend-item {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.recommend-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.recommend-item a {
    display: flex;
    flex-direction: column;
}

.recommend-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.recommend-info {
    padding: 12px;
}

.recommend-info h4 {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommend-price {
    font-size: 18px;
    color: #ff0000;
    font-weight: bold;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.nav-items {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 5px;
}

.nav-item:hover {
    color: #ff6600;
}

/* 搜索结果页 */
.search-result-section {
    padding: 30px 0;
}

.result-header {
    margin-bottom: 30px;
}

.result-title {
    font-size: 20px;
    color: #333;
}

.result-count {
    font-size: 14px;
    color: #666;
    margin-left: 10px;
}

.no-result {
    text-align: center;
    padding: 80px 20px;
}

.no-result-icon {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

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

.no-result p {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.btn-back {
    display: inline-block;
    padding: 10px 30px;
    background-color: #ff6600;
    color: #fff;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-back:hover {
    background-color: #ff5500;
}

/* 品牌列表页 */
.brand-filter-section {
    background-color: #fff;
    padding: 20px 0;
    margin-bottom: 20px;
}

.brand-title,
.series-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.brand-items,
.series-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-item,
.series-item {
    padding: 8px 20px;
    background-color: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-item:hover,
.brand-item.active,
.series-item:hover,
.series-item.active {
    background-color: #ff6600;
    color: #fff;
}

.brand-name,
.series-item {
    font-size: 14px;
}

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

.brand-item.active .brand-count,
.brand-item:hover .brand-count {
    color: #fff;
}

/* 登录注册页 */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 420px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    margin-bottom: 20px;
}

.login-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.login-tabs .tab {
    font-size: 16px;
    color: #666;
    padding-bottom: 8px;
    position: relative;
}

.login-tabs .tab.active {
    color: #ff6600;
    font-weight: bold;
}

.login-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff6600;
}

.login-form-container,
.register-form-container {
    padding-top: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6600;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.code-input {
    display: flex;
    gap: 10px;
}

.code-input input {
    flex: 1;
}

.btn-code {
    padding: 0 20px;
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-code:hover:not(:disabled) {
    background-color: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

.btn-code:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.checkbox input {
    margin-right: 5px;
}

.forgot-password {
    color: #ff6600;
    font-size: 13px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #ff5500;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

.form-footer a {
    color: #ff6600;
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #eee;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background-color: #fff;
    padding: 0 15px;
    color: #999;
    font-size: 13px;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.btn-social {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: #ff6600;
    color: #ff6600;
}

.btn-wechat i {
    color: #07c160;
}

.btn-qq i {
    color: #12b7f5;
}

.btn-alipay i {
    color: #1677ff;
}

/* 卖车页面 */
.sell-section {
    padding: 40px 0;
}

.sell-banner {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    border-radius: 10px;
    margin-bottom: 40px;
}

.sell-banner h1 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 15px;
}

.sell-banner p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.sell-content {
    display: flex;
    gap: 40px;
}

.sell-process {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
}

.process-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step {
    text-align: center;
    flex: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.step-icon i {
    font-size: 32px;
    color: #fff;
}

.step h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    color: #999;
}

.step-arrow {
    color: #ddd;
    font-size: 24px;
}

.sell-form {
    width: 500px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
}

.form-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
}

.form-actions {
    margin-top: 30px;
}

.sell-advantages {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-top: 40px;
}

.advantages-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.advantage-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-item {
    text-align: center;
}

.advantage-icon {
    width: 100px;
    height: 100px;
    background-color: #fff5f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-icon i {
    font-size: 40px;
    color: #ff6600;
}

.advantage-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.advantage-item p {
    font-size: 14px;
    color: #999;
}

/* 计算器页面 */
.calculator-section {
    padding: 40px 0;
}

.calculator-header {
    text-align: center;
    margin-bottom: 40px;
}

.calculator-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.calculator-header p {
    font-size: 16px;
    color: #666;
}

.calculator-content {
    display: flex;
    gap: 40px;
}

.calculator-form {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
}

.loan-form .slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.loan-form input[type="range"] {
    flex: 1;
}

.slider-value {
    min-width: 60px;
    text-align: center;
}

#downPaymentValue {
    font-size: 18px;
    font-weight: bold;
    color: #ff6600;
}

.btn-calculate {
    width: 100%;
    padding: 14px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-calculate:hover {
    background-color: #ff5500;
}

.calculator-result {
    width: 400px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
}

.result-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff6600;
}

.result-items {
    margin-bottom: 30px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.result-item.highlight {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    margin: 0 -15px;
    padding: 20px 15px;
    border-radius: 6px;
}

.result-label {
    font-size: 14px;
    color: #666;
}

.result-value {
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.result-item.highlight .result-label,
.result-item.highlight .result-value {
    color: #fff;
}

.result-item.highlight .result-value {
    font-size: 24px;
}

.result-chart {
    margin-bottom: 30px;
}

.result-chart h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.chart-bar {
    display: flex;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.bar-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    transition: width 0.5s ease;
}

.bar-segment:nth-child(1) {
    background-color: #52c41a;
}

.bar-segment:nth-child(2) {
    background-color: #1890ff;
}

.bar-segment:nth-child(3) {
    background-color: #ff6600;
}

.chart-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.color-1 {
    background-color: #52c41a;
}

.legend-color.color-2 {
    background-color: #1890ff;
}

.legend-color.color-3 {
    background-color: #ff6600;
}

.result-tips {
    background-color: #fff5f0;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #ff6600;
}

.result-tips h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
}

.result-tips ul {
    list-style: disc;
    padding-left: 20px;
}

.result-tips li {
    font-size: 13px;
    color: #666;
    margin: 8px 0;
}

/* 社区页面 */
.community-section {
    padding: 40px 0;
}

.community-header {
    text-align: center;
    margin-bottom: 40px;
}

.community-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.community-header p {
    font-size: 16px;
    color: #666;
}

.community-content {
    display: flex;
    gap: 30px;
}

.community-main {
    flex: 1;
}

.community-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.community-tabs .tab {
    font-size: 15px;
    color: #666;
    padding-bottom: 13px;
    position: relative;
}

.community-tabs .tab.active {
    color: #ff6600;
    font-weight: bold;
}

.community-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff6600;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    display: flex;
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.post-image {
    width: 200px;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.post-title a {
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #ff6600;
}

.post-excerpt {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

.post-meta i {
    margin-right: 5px;
}

.community-sidebar {
    width: 320px;
}

.sidebar-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6600;
}

.topic-list,
.hot-questions {
    display: flex;
    flex-direction: column;
}

.topic-item,
.hot-question-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

.topic-item:hover,
.hot-question-item:hover {
    color: #ff6600;
}

.topic-item:last-child,
.hot-question-item:last-child {
    border-bottom: none;
}

.topic-rank {
    width: 24px;
    height: 24px;
    background-color: #ddd;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

.topic-rank.rank-1 {
    background-color: #ff4d4f;
}

.topic-rank.rank-2 {
    background-color: #ff7a45;
}

.topic-rank.rank-3 {
    background-color: #ffa940;
}

.topic-name,
.question-title {
    flex: 1;
    font-size: 14px;
}

.topic-count,
.question-answers {
    font-size: 12px;
    color: #999;
}

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

.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.user-desc {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.post-action {
    text-align: center;
}

.btn-post {
    width: 100%;
    padding: 12px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-post:hover {
    background-color: #ff5500;
}

/* 问答页面 */
.qa-section {
    padding: 40px 0;
}

.qa-header {
    text-align: center;
    margin-bottom: 40px;
}

.qa-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.qa-header p {
    font-size: 16px;
    color: #666;
}

.qa-content {
    display: flex;
    gap: 30px;
}

.qa-main {
    flex: 1;
}

.ask-box {
    display: flex;
    gap: 15px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.ask-input {
    flex: 1;
}

.ask-input input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.ask-input input:focus {
    border-color: #ff6600;
}

.btn-ask {
    padding: 12px 30px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.btn-ask:hover {
    background-color: #ff5500;
}

.qa-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.qa-tabs .tab {
    font-size: 15px;
    color: #666;
    padding-bottom: 13px;
    position: relative;
}

.qa-tabs .tab.active {
    color: #ff6600;
    font-weight: bold;
}

.qa-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff6600;
}

.question-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-item {
    display: flex;
    gap: 20px;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.question-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.question-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    text-align: center;
    min-width: 70px;
}

.stat-num {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.stat-item.answers .stat-num {
    color: #ff6600;
}

.question-content {
    flex: 1;
}

.question-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
}

.question-title a {
    transition: color 0.3s ease;
}

.question-title a:hover {
    color: #ff6600;
}

.question-excerpt {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
    line-height: 1.6;
}

.question-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.question-tags .tag {
    padding: 4px 12px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 3px;
    font-size: 12px;
}

.question-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

.qa-sidebar {
    width: 320px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    padding: 6px 12px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background-color: #ff6600;
    color: #fff;
}

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

.expert-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.expert-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-info {
    flex: 1;
}

.expert-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.expert-desc {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.expert-stats {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 960px;
    }

    .car-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        width: 720px;
    }

    .header-nav {
        margin: 0 20px;
    }

    .car-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .car-basic-info {
        flex-direction: column;
    }

    .car-gallery {
        width: 100%;
    }

    .detail-content {
        flex-direction: column;
    }

    .detail-sidebar {
        width: 100%;
    }

    .sell-content,
    .calculator-content,
    .community-content,
    .qa-content {
        flex-direction: column;
    }

    .sell-form,
    .calculator-result {
        width: 100%;
    }

    .community-sidebar,
    .qa-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    .header-top {
        flex-wrap: wrap;
    }

    .header-nav {
        width: 100%;
        margin: 15px 0;
    }

    .header-nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    .search-box {
        display: none;
    }

    .car-list {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .advantage-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-item {
        flex-direction: column;
    }

    .post-image {
        width: 100%;
    }

    .question-item {
        flex-direction: column;
    }

    .question-stats {
        flex-direction: row;
    }
}
