/* 详情页头部通屏样式 */
.page-header-fullwidth {
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    width: 100%;
}
.page-header-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.page-header-fullwidth h1 {
    margin-bottom: 10px;
    font-size: 2.5rem;
}
.vehicle-model-badge {
    display: inline-block;
    background: var(--red, #e63946);
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* 桌面端布局（左右结构） */
.wheel-detail {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    margin-top: 40px;
}
.wheel-gallery {
    flex: 1.5;
    position: relative;
}
.wheel-info {
    flex: 1;
    margin-top: 20px;
}

/* 缩略图、颜色选择器等通用样式 */
.thumbnail-item {
    transition: all 0.3s ease;
}
.thumbnail-item:hover {
    transform: scale(1.05);
}
.color-swatch-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.color-swatch-detail:hover {
    transform: scale(1.05);
}
.swatch-circle {
    transition: all 0.2s ease;
}
.color-name {
    font-size: 12px;
    margin-top: 2px;
}

/* 规格表格 */
.wheel-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.wheel-specs-table th,
.wheel-specs-table td {
    border: 1px solid var(--border-color, #e0e0e0);
    padding: 14px 18px;
    vertical-align: top;
    text-align: left;
}
.wheel-specs-table th {
    background-color: #f8f8f8;
    font-weight: 700;
    width: 30%;
    color: var(--black, #000);
}
.spec-list {
    margin: 0;
    padding-left: 18px;
    list-style-type: disc;
}
.spec-list li {
    margin-bottom: 5px;
    line-height: 1.5;
}

/* 播放按钮 */
.video-play-btn {
    position: absolute;
    bottom: 25px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: rgba(0,0,0,0.75);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10;
}
.video-play-btn:hover {
    background-color: var(--red, #e63946);
    transform: scale(1.05);
}
.video-play-btn svg {
    margin-left: 3px;
}

/* 视频模态框 */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 35px rgba(0,0,0,0.5);
}
.close-modal {
    position: absolute;
    top: 12px;
    right: 20px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s;
    line-height: 1;
}
.close-modal:hover {
    color: var(--red, #e63946);
}
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 新增：图片放大悬浮模态框样式 (Lightbox) */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255,255,255);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    text-align: center;
}
.lightbox-image-container img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #000;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
}
.lightbox-close:hover {
    color: #e63946;
}
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
    background: rgba(0,0,0,0.5);
    border-radius: 0 3px 3px 0;
}
.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.lightbox-prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(230,57,70,0.8);
}
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 14px;
    background: rgba(0,0,0,0.6);
    display: inline-block;
    width: fit-content;
    margin: 0 auto;
    padding: 5px 12px;
    border-radius: 20px;
    pointer-events: none;
}
/* 移动端适配lightbox */
@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        font-size: 24px;
        padding: 12px;
    }
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* 描述区域 */
.wheel-description {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color, #e0e0e0);
}
.wheel-description h4 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}
.description-content {
    line-height: 1.7;
    color: #333;
}
.wheel-extra-details {
    margin-top: 50px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 20px;
    border: 1px solid var(--border-color, #e0e0e0);
}
.extra-details-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--black, #000);
    border-left: 5px solid var(--red, #e63946);
    padding-left: 20px;
}
.extra-details-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #222;
}
.extra-details-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 10px 0;
}

/* ========== 移动端优化（图片在上，文字在下） ========== */
@media (max-width: 768px) {
    .page-header-fullwidth {
        padding: 40px 15px;
    }
    .page-header-fullwidth h1 {
        font-size: 1.8rem;
    }
    .wheel-detail {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }
    .wheel-gallery {
        width: 100%;
        order: 1;
    }
    .wheel-info {
        width: 100%;
        order: 2;
        margin-top: 0;
    }
    .wheel-specs-table th,
    .wheel-specs-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    .wheel-specs-table th {
        width: 35%;
    }
    .spec-list {
        padding-left: 15px;
    }
    .video-play-btn {
        width: 44px;
        height: 44px;
        bottom: 15px;
        right: 12px;
    }
    .video-play-btn svg {
        width: 20px;
        height: 20px;
    }
    .color-swatches {
        gap: 10px;
    }
    .swatch-circle {
        width: 36px !important;
        height: 36px !important;
    }
    .color-name {
        font-size: 10px;
    }
    .wheel-description h4 {
        font-size: 1.1rem;
    }
    .description-content {
        font-size: 0.95rem;
    }
    .wheel-extra-details {
        margin-top: 30px;
        padding: 20px;
    }
    .extra-details-title {
        font-size: 1.4rem;
        padding-left: 15px;
    }
    .extra-details-content {
        font-size: 0.95rem;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .thumbnail-item {
        width: 70px;
    }
    .thumbnail-item img {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .color-swatches {
        gap: 8px;
    }
    .swatch-circle {
        width: 30px !important;
        height: 30px !important;
    }
    .thumbnail-item {
        width: 60px;
    }
    .thumbnail-item img {
        height: 60px;
    }
}

/* ========== Vehicle Gallery 模块样式 ========== */
.vehicle-gallery-section {
    margin-top: 50px;
    padding: 20px 0 30px;
    border-top: 2px solid #eee;
}
.vehicle-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 25px;
}
.vehicle-gallery-title {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
    color: #111;
}
.view-gallery-link {
    font-size: 1rem;
    text-decoration: none;
    color: #e63946;
    font-weight: 500;
    border-bottom: 1px dashed #e63946;
    transition: 0.2s;
}
.view-gallery-link:hover {
    color: #000;
    border-bottom-color: #000;
}
.vehicle-gallery-carousel-wrapper {
    position: relative;
}
.gallery-scroll-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.gallery-track {
    display: flex;
    gap: 25px;
    padding: 10px 5px 20px;
}
.gallery-card {
    flex: 0 0 calc(25% - 19px); /* 默认4个一行 */
    min-width: 220px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    transition: transform 0.25s;
}
.gallery-card:hover {
    transform: translateY(-6px);
}
.gallery-card-img {
    aspect-ratio: 16 / 16;
    overflow: hidden;
}
.gallery-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.gallery-card:hover .gallery-card-img img {
    transform: scale(1.02);
}
.gallery-card-info {
    padding: 14px 12px;
}
.gallery-card-info h4 {
    font-size: 1.1rem;
    margin: 0 0 5px;
    font-weight: 700;
}
.wheel-used {
    font-size: 0.85rem;
    color: #e63946;
    margin: 0;
    font-weight: 500;
}
.gallery-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}
.gallery-scroll-btn:hover {
    background: #e63946;
}
.left-btn {
    left: -15px;
}
.right-btn {
    right: -15px;
}
/* 移动端适配 */
@media (max-width: 1024px) {
    .gallery-card {
        flex: 0 0 calc(33.33% - 17px);
        min-width: 200px;
    }
}
@media (max-width: 768px) {
    .vehicle-gallery-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .vehicle-gallery-title {
        font-size: 1.5rem;
    }
    .gallery-card {
        flex: 0 0 calc(50% - 12px);
        min-width: 170px;
    }
    .gallery-scroll-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .left-btn {
        left: -8px;
    }
    .right-btn {
        right: -8px;
    }
}
@media (max-width: 560px) {
    .gallery-card {
        flex: 0 0 calc(100% - 20px);
        min-width: 240px;
    }
    .gallery-track {
        gap: 18px;
    }
}
/* ===== Site Reviews 插件样式适配 ===== */
.site-reviews-wrapper {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 2px solid #eee;
}

.site-reviews-wrapper .glsr-review {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.site-reviews-wrapper .glsr-star-rating--stars {
    color: #e63946;
}

.site-reviews-wrapper .glsr-submit-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 40px;
}

.site-reviews-wrapper input,
.site-reviews-wrapper textarea,
.site-reviews-wrapper select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 14px;
    width: 100%;
}

.site-reviews-wrapper .glsr-button {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s;
}

.site-reviews-wrapper .glsr-button:hover {
    background: #e63946;
    cursor: pointer;
}

@media (max-width: 768px) {
    .site-reviews-wrapper {
        margin-top: 30px;
        padding: 20px 0;
    }
    .site-reviews-wrapper .glsr-submit-form {
        padding: 20px;
    }
}
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-top: 2rem;
}
.nav-links .page-numbers {
    padding: 0.5rem 1rem;
    text-decoration: none;
    background-color: #f0f0f0;
    color: #000;
    border-radius: 6px;
    transition: all 0.2s;
}
.nav-links a.page-numbers:hover {
    background-color: var(--red, #e63946);
    color: #fff;
}
.nav-links .page-numbers.current {
    background-color: var(--black, #000);
    color: #fff;
    cursor: default;
}
/* ========== You May Also Like 横向滚动区域 ========== */
.related-wheels-section {
    margin-top: 60px;
    padding: 30px 0 40px;
    border-top: 2px solid #eee;
}
.related-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 25px;
}
.related-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--black, #000);
}
.related-arrows {
    display: flex;
    gap: 12px;
}
.related-arrow {
    background: rgba(0,0,0,0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.related-arrow:hover {
    background: var(--red, #e63946);
}
.related-arrow:disabled {
    opacity: 0.4;
    cursor: default;
    background: rgba(0,0,0,0.4);
}
.related-wheels-scroll-wrapper {
    position: relative;
}
.related-wheels-scroll-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.related-track {
    display: flex;
    gap: 25px;
    padding: 10px 0 20px;
}
.related-card {
    flex: 0 0 280px;
    min-width: 260px;
    max-width: 100%;
}
/* 移动端窄屏显示稍小卡片 */
@media (max-width: 768px) {
    .related-card {
        flex: 0 0 240px;
        min-width: 220px;
    }
    .related-title {
        font-size: 1.5rem;
    }
    .related-arrow {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}
/* 鼠标悬停时显示完整滚动条，平时隐藏 */
.related-wheels-scroll-container::-webkit-scrollbar {
    height: 6px;
}
.related-wheels-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.related-wheels-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.related-wheels-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}
.gallery-card-link {
    text-decoration: none;
    display: block;
    flex: 0 0 calc(25% - 19px);
    min-width: 220px;
}
@media (max-width: 1024px) {
    .gallery-card-link { flex: 0 0 calc(33.33% - 17px); }
}
@media (max-width: 768px) {
    .gallery-card-link { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 560px) {
    .gallery-card-link { flex: 0 0 calc(100% - 20px); }
}
/* ===== Inquiry Modal ===== */
.inquiry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}
.inquiry-modal-content {
    background: #fff;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.inquiry-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}
.inquiry-modal-close:hover {
    color: var(--red, #e63946);
}
.inquiry-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
}
.inquiry-modal-content .form-group {
    margin-bottom: 18px;
}
.inquiry-modal-content label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}
.inquiry-modal-content input,
.inquiry-modal-content select,
.inquiry-modal-content textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
}
.inquiry-modal-content input:focus,
.inquiry-modal-content select:focus,
.inquiry-modal-content textarea:focus {
    border-color: var(--red, #e63946);
    outline: none;
}
.attachment-preview {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.attachment-preview img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.submit-inquiry {
    width: 100%;
    background: #000;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 10px;
}
.submit-inquiry:hover {
    background: var(--red, #e63946);
}
.form-message {
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
}
.form-message.success {
    color: #2c7a2c;
}
.form-message.error {
    color: #d9534f;
}
@media (max-width: 768px) {
    .inquiry-modal-content {
        padding: 20px;
        width: 95%;
    }
}
/* Certification badges style */
.certification-badges {
    margin-bottom: 25px;
}
.certification-badges h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}
.badges-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}
.badges-list img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.2s;
}
.badges-list img:hover {
    transform: scale(1.1);
}
/* 移动端适配 */
@media (max-width: 768px) {
    .badges-list {
        gap: 12px;
    }
    .certification-badges h3 {
        font-size: 1rem;
    }
}