/* ===== 卡车详情页样式 - 参考 shunweiag.com ===== */
.truck-detail-page {
    background: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* 面包屑导航 */
.truck-breadcrumb {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.truck-breadcrumb-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #888;
}

.truck-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.truck-breadcrumb a:hover {
    color: #e94560;
}

.truck-breadcrumb .current {
    color: #333;
}

/* Hero 区域 */
.truck-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.truck-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.truck-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.truck-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.truck-hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* 统计卡片 */
.truck-hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.truck-stat-card {
    background: rgba(255,255,255,0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 20px 25px;
    min-width: 150px;
    text-align: center;
    transition: all 0.3s;
}

.truck-stat-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.truck-stat-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.truck-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.truck-stat-label {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 5px;
}

/* 主内容区 */
.truck-main-content {
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 0 20px;
}

/* 图片画廊 */
.truck-detail-gallery {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 25px;
}

.truck-gallery-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.truck-gallery-main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    cursor: zoom-in;
}

.truck-gallery-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.truck-gallery-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.truck-gallery-nav-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.truck-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
}

.truck-gallery-thumb {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.truck-gallery-thumb:hover,
.truck-gallery-thumb.active {
    opacity: 1;
    border-color: #e94560;
}

.truck-gallery-thumb img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

/* 产品信息区 */
.truck-detail-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

/* Tab 切换 */
.truck-detail-tabs {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.truck-tabs-header {
    display: flex;
    border-bottom: 2px solid #eee;
}

.truck-tab-btn {
    flex: 1;
    padding: 18px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.truck-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e94560;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.truck-tab-btn:hover {
    color: #333;
}

.truck-tab-btn.active {
    color: #e94560;
}

.truck-tab-btn.active::after {
    transform: scaleX(1);
}

.truck-tab-content {
    padding: 30px;
    display: none;
}

.truck-tab-content.active {
    display: block;
}

/* 侧边栏 */
.truck-sidebar {
    position: sticky;
    top: 20px;
}

.truck-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.truck-sidebar-card h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #333;
}

.truck-price-tag {
    font-size: 36px;
    font-weight: 700;
    color: #e94560;
    margin-bottom: 20px;
}

.truck-price-tag small {
    font-size: 16px;
    font-weight: 400;
    color: #999;
}

.truck-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.truck-info-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.truck-info-list li:last-child {
    border-bottom: none;
}

.truck-info-icon {
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
}

.truck-info-label {
    color: #888;
    margin-right: 10px;
}

.truck-info-value {
    color: #333;
    font-weight: 500;
}

/* 按钮 */
.truck-btn-primary {
    display: block;
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 12px;
}

.truck-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233,69,96,0.35);
    color: #fff;
}

.truck-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 30px;
    background: #f5f5f5;
    color: #333;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.truck-btn-secondary:hover {
    background: #eee;
}

/* 询价表单 */
.truck-inquiry-form {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.truck-form-group {
    margin-bottom: 15px;
}

.truck-form-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

.truck-form-group input,
.truck-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.truck-form-group input:focus,
.truck-form-group textarea:focus {
    outline: none;
    border-color: #e94560;
}

.truck-form-submit {
    width: 100%;
    padding: 14px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.truck-form-submit:hover {
    background: #e94560;
}

/* 联系卡片 */
.truck-contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.truck-contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.truck-contact-card:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.truck-contact-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.truck-contact-info {
    flex: 1;
}

.truck-contact-label {
    font-size: 12px;
    color: #888;
}

.truck-contact-value {
    font-size: 14px;
    font-weight: 600;
}

/* 产品卖点 */
.truck-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.truck-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 12px;
    transition: all 0.3s;
}

.truck-feature-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.truck-feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.truck-feature-text h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.truck-feature-text p {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
    margin: 0;
}

/* 视频区域 */
.truck-video-section {
    margin-top: 30px;
}

.truck-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.truck-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 分享按钮 */
.truck-share-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.truck-share-title {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.truck-share-buttons {
    display: flex;
    gap: 10px;
}

.truck-share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.truck-share-btn:hover {
    background: #e94560;
    color: #fff;
}

/* 上下篇导航 */
.truck-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.truck-post-nav-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.truck-post-nav-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.truck-post-nav-item.prev {
    flex-direction: row;
}

.truck-post-nav-item.next {
    flex-direction: row-reverse;
    text-align: right;
}

.truck-post-nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #888;
}

.truck-post-nav-info {
    flex: 1;
}

.truck-post-nav-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}

.truck-post-nav-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* 询价弹窗 */
.truck-inquiry-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.truck-inquiry-modal.show {
    display: flex;
}

.truck-inquiry-content {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.truck-inquiry-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.truck-inquiry-close:hover {
    background: #e94560;
    color: #fff;
}

.truck-inquiry-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.truck-inquiry-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 25px;
}

.truck-inquiry-form .truck-form-group input,
.truck-inquiry-form .truck-form-group textarea {
    padding: 14px 16px;
}

.truck-inquiry-form .truck-form-submit {
    margin-top: 10px;
    padding: 16px;
    font-size: 17px;
}

/* 图片查看器 */
.truck-image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.truck-image-viewer.show {
    display: flex;
}

.truck-image-viewer img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.truck-image-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border: none;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.truck-image-viewer-close:hover {
    background: #e94560;
}

.truck-image-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.truck-image-viewer-nav:hover {
    background: #e94560;
}

.truck-image-viewer-nav.prev {
    left: 20px;
}

.truck-image-viewer-nav.next {
    right: 20px;
}

.truck-image-viewer-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 视频占位符 */
.truck-video-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.truck-video-placeholder:hover {
    transform: scale(1.02);
}

.truck-video-placeholder-icon {
    width: 80px;
    height: 80px;
    background: rgba(233,69,96,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.truck-video-placeholder:hover .truck-video-placeholder-icon {
    background: #e94560;
    transform: scale(1.1);
}

/* 响应式 */
@media (max-width: 1200px) {
    .truck-detail-gallery {
        grid-template-columns: 1fr 220px;
    }
    
    .truck-gallery-main-image {
        height: 420px;
    }
    
    .truck-gallery-thumb img {
        height: 95px;
    }
}

@media (max-width: 992px) {
    .truck-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .truck-sidebar {
        position: static;
    }
    
    .truck-detail-gallery {
        grid-template-columns: 1fr;
    }
    
    .truck-gallery-thumbs {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
    }
    
    .truck-gallery-thumb img {
        width: 100px;
        height: 70px;
    }
    
    .truck-hero h1 {
        font-size: 32px;
    }
    
    .truck-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .truck-hero {
        padding: 40px 0;
    }
    
    .truck-hero h1 {
        font-size: 28px;
    }
    
    .truck-hero-stats {
        gap: 12px;
    }
    
    .truck-stat-card {
        min-width: 130px;
        padding: 15px;
    }
    
    .truck-stat-value {
        font-size: 20px;
    }
    
    .truck-gallery-main-image {
        height: 300px;
    }
    
    .truck-price-tag {
        font-size: 28px;
    }
    
    .truck-tabs-header {
        overflow-x: auto;
    }
    
    .truck-tab-btn {
        white-space: nowrap;
        padding: 15px;
        font-size: 14px;
    }
    
    .truck-post-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .truck-gallery-main-image {
        height: 240px;
    }
    
    .truck-gallery-thumbs {
        gap: 8px;
    }
    
    .truck-gallery-thumb img {
        width: 80px;
    }
    
    .truck-inquiry-content {
        padding: 30px 20px;
    }
}
