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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: #2c3e50;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 15px;
    z-index: 1000;
}

.header .search-box {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0 15px;
    margin-right: 10px;
}

.header .search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    padding: 8px 0;
    outline: none;
}

.header .search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header .search-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.header .filter-btn {
    padding: 5px 10px;
    background-color: #e74c3c;
    border-radius: 4px;
    cursor: pointer;
}

/* 详情页头部 */
.detail-header {
    justify-content: space-between;
}

.detail-header .back-btn {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.detail-header h1 {
    font-size: 18px;
    font-weight: normal;
}

.detail-header .share-btn {
    cursor: pointer;
}

/* 轮播图 */
.banner {
    margin-top: 50px;
    height: 200px;
}

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

/* 车辆图片 */
.car-images {
    margin-top: 50px;
    background-color: #fff;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.image-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* 筛选索引 */
.filter-index {
    background-color: #fff;
    padding: 15px;
    margin-top: 50px;
    border-bottom: 1px solid #eee;
}

/* 车辆列表 */
.car-list {
    margin-top: 50px;
    padding: 15px;
}

/* 文字内容区域 */
.car-detail-info,
.car-params,
.car-description,
.car-owner,
.related-cars {
    background-color: #fff;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

/* 车辆基本信息 */
.car-detail-info {
    border-top: 1px solid #eee;
}

.filter-row {
    display: flex;
    gap: 10px;
}

.filter-select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    outline: none;
}

.detail-banner {
    margin-top: 50px;
    height: 300px;
}

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

/* 车辆列表 */
.car-list {
    padding: 10px;
}

.car-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.car-card a {
    text-decoration: none;
    color: #333;
}

.car-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

.car-info {
    padding: 10px;
}

.car-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.car-price {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 5px;
}

.car-meta {
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.car-meta span {
    margin-right: 10px;
}

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

/* 加载更多 */
.load-more {
    text-align: center;
    padding: 15px;
    color: #666;
    cursor: pointer;
}

/* 筛选弹窗 */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
}

.filter-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-radius: 10px 10px 0 0;
    max-height: 80vh;
    overflow-y: auto;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.filter-header h3 {
    font-size: 16px;
    font-weight: normal;
}

.filter-header .close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.filter-body {
    padding: 15px;
}

.filter-item {
    margin-bottom: 15px;
}

.filter-item label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
}

.filter-footer {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
}

.reset-btn {
    flex: 1;
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.confirm-btn {
    flex: 1;
    padding: 10px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 底部导航 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: #fff;
    display: flex;
    border-top: 1px solid #eee;
    z-index: 1000;
}

.footer-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
}

.footer-item.active {
    color: #e74c3c;
}

.footer-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

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

/* 车辆详情 */
.car-detail-info {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
}

.car-detail-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.car-detail-price {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 10px;
}

.car-detail-meta {
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    color: #666;
}

.car-detail-meta span {
    margin-right: 15px;
}

/* 车辆参数 */
.car-params {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.params-list {
    display: flex;
    flex-wrap: wrap;
}

.param-item {
    width: 50%;
    margin-bottom: 10px;
    display: flex;
}

.param-label {
    width: 80px;
    color: #666;
    font-size: 14px;
}

.param-value {
    flex: 1;
    color: #333;
    font-size: 14px;
}

/* 车况描述 */
.car-description {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
}

.description-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* 车主信息 */
.car-owner {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
}

.owner-info {
    display: flex;
    align-items: center;
}

.owner-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

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

.owner-details {
    flex: 1;
}

.owner-name {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.owner-name span {
    font-size: 16px;
    font-weight: bold;
    margin-right: 10px;
}

.verified {
    font-size: 12px;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    padding: 2px 5px;
}

.owner-time {
    font-size: 12px;
    color: #999;
}

/* 同品牌推荐 */
.related-cars {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 70px;
}

.related-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
}

.related-item {
    flex: 0 0 150px;
    margin-right: 10px;
    text-decoration: none;
    color: #333;
}

.related-img {
    width: 150px;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 5px;
}

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

.related-info {
    padding: 5px;
}

.related-title {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-price {
    font-size: 14px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 5px;
}

.related-meta {
    font-size: 12px;
    color: #666;
}

.no-related {
    text-align: center;
    padding: 20px;
    color: #999;
}

/* 详情页底部操作栏 */
.detail-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-top: 1px solid #eee;
    z-index: 1000;
}

.footer-left {
    flex: 1;
}

.btn-favorite {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    cursor: pointer;
}

.icon-favorite {
    font-size: 20px;
    margin-bottom: 2px;
}

.footer-right {
    display: flex;
}

.btn-wechat, .btn-call {
    width: 100px;
    height: 40px;
    border: none;
    border-radius: 20px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
}

.btn-wechat {
    background-color: #4caf50;
}

.btn-call {
    background-color: #e74c3c;
}

.icon-wechat, .icon-call {
    font-size: 16px;
    margin-right: 5px;
}

/* 发布页 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: #fff;
    margin-top: 50px;
    margin-bottom: 10px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    font-size: 14px;
}

.step-item.active .step-number {
    background-color: #e74c3c;
    color: #fff;
}

.step-text {
    font-size: 12px;
    color: #666;
}

.step-item.active .step-text {
    color: #e74c3c;
}

.publish-form {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 70px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-item {
    margin-bottom: 15px;
}

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

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
}

.form-textarea {
    height: 100px;
    resize: none;
}

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-checkbox input {
    margin-right: 10px;
}

.upload-container {
    display: flex;
    flex-wrap: wrap;
}

.upload-item {
    width: 80px;
    height: 80px;
    margin-right: 10px;
    margin-bottom: 10px;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

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

.add-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.upload-icon {
    font-size: 30px;
    color: #ddd;
    margin-bottom: 5px;
}

.upload-text {
    font-size: 12px;
    color: #999;
}

.upload-remove {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.publish-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-top: 1px solid #eee;
    z-index: 1000;
}

.btn-prev, .btn-next, .btn-submit {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

.btn-prev {
    background-color: #fff;
    border: 1px solid #ddd;
    margin-right: 10px;
}

.btn-next, .btn-submit {
    background-color: #e74c3c;
    color: #fff;
}

.login-modal .btn-submit {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
}

/* 用户中心 */
.user-info {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 15px;
    margin-top: 50px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

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

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

.user-details {
    flex: 1;
}

.user-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.user-phone {
    font-size: 14px;
    opacity: 0.8;
}

.edit-profile {
    color: #fff;
    text-decoration: none;
    border: 1px solid #fff;
    border-radius: 15px;
    padding: 5px 15px;
    font-size: 12px;
}

.login-prompt {
    flex: 1;
    text-align: center;
}

.login-prompt h3 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: normal;
}

.btn-login {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 30px;
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
    margin: 5px;
}

.btn-register {
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 30px;
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
    margin: 5px;
}

.user-menu {
    background-color: #fff;
    margin-bottom: 70px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
}

.menu-icon {
    font-size: 20px;
    margin-right: 15px;
}

.menu-text {
    flex: 1;
    font-size: 16px;
}

.menu-arrow {
    color: #999;
    font-size: 16px;
}

.menu-item.logout {
    color: #e74c3c;
}

/* 登录弹窗 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: normal;
}

.modal-header .close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.modal-body {
    padding: 15px;
}

.verification-code {
    display: flex;
    align-items: center;
}

.verification-code .form-input {
    flex: 1;
    margin-right: 10px;
}

.btn-get-code {
    padding: 10px;
    background-color: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

/* 联系页面 */
.contact-info {
    background-color: #fff;
    padding: 15px;
    margin-top: 60px;
    margin-bottom: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    font-size: 30px;
    margin-right: 15px;
    width: 50px;
    text-align: center;
}

.contact-details {
    flex: 1;
}

.contact-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.contact-details p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.btn-call, .btn-wechat, .btn-email {
    padding: 5px 15px;
    border: 1px solid #e74c3c;
    border-radius: 15px;
    background-color: #fff;
    color: #e74c3c;
    font-size: 12px;
    cursor: pointer;
}

.btn-call:hover, .btn-wechat:hover, .btn-email:hover {
    background-color: #e74c3c;
    color: #fff;
}

.faq-section {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 70px;
}

.faq-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 18px;
    font-weight: bold;
}

.faq-answer {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: none;
}

.faq-answer p {
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .car-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .car-card {
        width: calc(50% - 5px);
    }
    
    .car-img img {
        object-fit: contain;
    }
    
    .param-item {
        width: 33.33%;
    }
}

@media (min-width: 1024px) {
    .car-card {
        width: calc(33.33% - 7px);
    }
    
    .car-img img {
        object-fit: contain;
    }
    
    .param-item {
        width: 25%;
    }
}
/* 提示信息框 */
.notice-box {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 15px;
    margin: 15px;
    margin-top: 50px;
}

.notice-box p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
}

.notice-box a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
}

.notice-box a:hover {
    text-decoration: underline;
}

