* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #1a1a2e;
    overflow-x: hidden;
    min-height: 100vh;
}

body.config-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
}

html[dir="rtl"] body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html[dir="rtl"] .header {
    padding: 16px 40px;
}

html[dir="rtl"] .logo {
    left: auto;
    right: 40px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 101;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #374151;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.logo {
    height: 30px;
    max-width: 180px;
    position: absolute;
    left: 76px;
}

.logo img {
    height: 100%;
    width: auto;
    max-width: 100%;
    display: block;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    font-weight: 500;
}

.nav a:hover,
.nav a.active {
    color: #d4a574;
}

/* 移动端导航遮罩 */
.nav-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.header-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.lang-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.03);
    color: #374151;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.lang-toggle:hover {
    border-color: rgba(212, 165, 116, 0.5);
    background: rgba(212, 165, 116, 0.08);
}

.lang-toggle:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.15);
}

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

.btn-login {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-download {
    background: linear-gradient(135deg, #d4a574, #a67c52);
    color: #fff;
    font-weight: 600;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

.main-content {
    display: flex;
    padding-top: 60px;
    height: 100vh;
    overflow: hidden;
    position: relative;
    flex-direction: row;
}

.car-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.view-toggle {
    position: absolute;
    top: 20px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.toggle-btn {
    width: 48px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: #d4a574;
    border-color: #d4a574;
}

.download-btn {
    height: 32px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    margin-left: 8px;
}
.download-btn:hover {
    background: #d4a574;
    border-color: #d4a574;
}

.car-view {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    min-height: 0;
}

.car-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    /* 确保容器不会被canvas撑大 */
    overflow: hidden;
}

#product-canvas {
    display: block;
    cursor: default;
    box-sizing: border-box;
}

.canvas-reset-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    height: 32px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    backdrop-filter: none;
}

.canvas-reset-btn::before {
    content: '⟲';
    font-size: 13px;
}

.canvas-reset-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.canvas-reset-btn:hover {
    background: #d4a574;
    border-color: #d4a574;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.zoom-btn {
    display: none;
}

.car-info {
    display: none;
}

.config-panel {
    width: 400px;
    background: rgba(20, 20, 30, 0.5);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(212, 165, 116, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.config-panel:hover {
    background: rgba(30, 30, 45, 0.7);
}

.config-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    min-height: 0;
}

.panel-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid transparent;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn.active {
    background: rgba(212, 165, 116, 0.3);
    color: #d4a574;
    border-color: rgba(212, 165, 116, 0.5);
}

.tab-btn:hover {
    background: rgba(212, 165, 116, 0.2);
    color: #fff;
}

.reset-all {
    margin-left: auto;
    padding: 6px 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
    transition: all 0.3s ease;
    align-self: center;
}

.reset-all:hover {
    color: #d4a574;
    border-color: rgba(212,165,116,0.4);
    background: rgba(212,165,116,0.1);
}

.config-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    opacity: 0.6;
}

.color-item:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
    border-color: rgba(212, 165, 116, 0.5);
}

.color-item.active {
    opacity: 1;
    background: rgba(212, 165, 116, 0.15);
    border-color: #d4a574;
}

.color-item.popular {
    opacity: 0.7;
}

.color-item.popular:hover {
    opacity: 1;
}

.color-swatch {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 14px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.color-item:hover .color-swatch {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.color-item.active .color-swatch {
    border-color: #d4a574;
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.4);
}

.color-info {
    flex: 1;
}

.color-name {
    font-size: 14px;
    margin-bottom: 2px;
    font-weight: 500;
}

.color-price {
    font-size: 12px;
    color: #d4a574;
    margin-left: auto;
}

.popular-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #d4a574, #a67c52);
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
}

.wheel-item,
.interior-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    opacity: 0.6;
}

.wheel-item:hover,
.interior-item:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
    border-color: rgba(212, 165, 116, 0.5);
}

.wheel-item.active,
.interior-item.active {
    opacity: 1;
    background: rgba(212, 165, 116, 0.15);
    border-color: #d4a574;
}

.wheel-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s;
}

.wheel-item:hover .wheel-preview,
.interior-item:hover .wheel-preview {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.wheel-item.active .wheel-preview,
.interior-item.active .wheel-preview {
    border-color: #d4a574;
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.4);
}

.interior-preview {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    margin-right: 14px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    overflow: hidden;
}

.interior-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-info {
    flex: 1;
}

.wheel-name,
.interior-name {
    font-size: 14px;
    margin-bottom: 2px;
    font-weight: 500;
}

.wheel-price,
.interior-price {
    font-size: 12px;
    color: #d4a574;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    opacity: 0.6;
}

.option-item:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
    border-color: rgba(212, 165, 116, 0.5);
}

.option-item.selected {
    opacity: 1;
    background: rgba(212, 165, 116, 0.15);
    border-color: #d4a574;
}

.option-checkbox {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.option-checkbox input {
    display: none;
}

.option-checkbox label {
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.option-checkbox input:checked + label {
    background: #d4a574;
    border-color: #d4a574;
}

.option-checkbox input:checked + label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.option-info {
    flex: 1;
}

.option-name {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
    font-weight: 500;
}

.option-desc {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.option-price {
    font-size: 13px;
    color: #d4a574;
    font-weight: 600;
    flex-shrink: 0;
}

.bottom-bar {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 12px 24px 16px;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
}

.bottom-bar .btn-submit {
    width: 100%;
}

.bottom-bar .total-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.bottom-bar .version-info-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(0, 0, 0, 0.15);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.version-info-bottom {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.version-name-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.version-name {
    font-size: 18px;
    font-weight: 700;
    color: #d4a574;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.version-specs {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    transition: all 0.3s ease;
}

.version-details {
    flex: 1;
    display: flex;
    align-items: center;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.detail-icon {
    font-size: 12px;
    color: #d4a574;
}

.detail-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.detail-text-simple {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin: 0;
    white-space: normal;
    word-break: break-all;
}

.total-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.total-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.total-value {
    font-size: 28px;
    font-weight: 700;
    color: #d4a574;
}

.btn-submit {
    background: linear-gradient(135deg, #d4a574, #a67c52);
    color: #fff;
    border: none;
    padding: 12px 36px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

/* ============ Quote Form Modal ============ */
.quote-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.quote-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.quote-overlay.closing {
    opacity: 0;
}

.quote-modal {
    background: linear-gradient(160deg, #1e1e35 0%, #16213e 40%, #1a1a2e 100%);
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 20px;
    padding: 36px 32px;
    width: 480px;
    max-width: 92vw;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

.quote-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.quote-modal-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 28px;
}

.quote-field {
    margin-bottom: 18px;
}

.quote-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.quote-required {
    color: #e05252;
    font-weight: 700;
}

.quote-field input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.quote-field input:focus {
    border-color: rgba(212, 165, 116, 0.5);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.08);
    background: rgba(255, 255, 255, 0.08);
}

.quote-field input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.quote-summary {
    background: rgba(212, 165, 116, 0.06);
    border: 1px solid rgba(212, 165, 116, 0.12);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quote-summary-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.quote-summary-price {
    font-size: 24px;
    font-weight: 700;
    color: #d4a574;
}

.btn-quote-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #d4a574, #a67c52);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-quote-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.35);
}

.quote-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quote-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #d4a574;
}

.quote-choice-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 6px;
}

.quote-choice-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-bottom: 28px;
}

.quote-choice-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.quote-choice-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    transition: all 0.25s ease;
}

.quote-choice-btn:hover {
    transform: translateY(-3px);
}

.quote-choice-wa:hover {
    background: rgba(37, 211, 102, 0.18);
    border-color: rgba(37, 211, 102, 0.45);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.15);
}

.quote-choice-wx:hover {
    background: rgba(7, 193, 96, 0.18);
    border-color: rgba(7, 193, 96, 0.45);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.15);
}

.quote-choice-wxid {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
}

/* ============ 响应式媒体查询 ============ */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .config-panel {
        width: 360px;
    }
}

/* 手机设备 (小于768px) */
@media (max-width: 768px) {
    /* 基础优化：防止文字缩放和改善触摸 */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 按钮和可点击元素的触摸优化 */
    button, 
    .tab-btn, 
    .color-item, 
    .interior-item,
    .option-item {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Header */
    .header {
        padding: 10px 16px;
        padding-top: max(10px, env(safe-area-inset-top));
    }

    .mobile-menu-btn {
        display: flex;
        width: 44px;
        height: 44px;
        padding: 10px;
    }

    .logo {
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
    }
    
    .logo img {
        max-height: 28px;
    }

    .nav {
        position: fixed;
        top: 60px;
        top: calc(60px + env(safe-area-inset-top));
        left: -100%;
        width: 85%;
        max-width: 300px;
        height: calc(100vh - 60px - env(safe-area-inset-top));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 16px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
        gap: 0;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2);
        }

    .nav.active {
        left: 0;
    }

    .nav-overlay.active {
        display: block;
    }

    .nav a {
        padding: 16px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        font-size: 16px;
        font-weight: 500;
    }

    .lang-toggle {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-left: auto;
        padding: 8px 14px;
        font-size: 13px;
    }

    /* 主内容 */
    .main-content {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    /* 产品展示区域 */
    .car-display {
        min-height: 45vh;
        flex: none;
        height: 45vh;
        padding-top: 8px;
    }

    .view-toggle {
        position: absolute;
        top: 12px;
        right: 12px;
        gap: 8px;
        z-index: 10;
    }

    .toggle-btn {
        width: 44px;
        height: 44px;
        font-size: 12px;
        border-radius: 8px;
    }

    .download-btn {
        height: 44px;
        padding: 0 14px;
        font-size: 13px;
        border-radius: 8px;
    }

    .car-view {
        padding: 12px;
        padding-top: 54px; /* 为顶部按钮留出空间 */
    }
    
    /* Canvas重置按钮优化 */
    .canvas-reset-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-radius: 50%;
    }

    /* 配置面板 */
    .config-panel {
        width: 100%;
        position: relative;
        flex: 1;
        min-height: 55vh;
        max-height: none;
        border-left: none;
        border-top: 1px solid rgba(212, 165, 116, 0.3);
    }

    .config-scroll {
        padding: 14px;
        -webkit-overflow-scrolling: touch;
    }

    .panel-tabs {
        gap: 8px;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }

    .tab-btn {
        padding: 10px 14px;
        font-size: 12px;
        min-height: 40px;
        border-radius: 8px;
    }

    .reset-all {
        padding: 8px 12px;
        font-size: 11px;
        min-height: 40px;
        border-radius: 8px;
    }

    /* 选项样式 */
    .color-item,
    .wheel-item,
    .interior-item,
    .option-item {
        padding: 14px 16px;
        min-height: 60px;
        border-radius: 12px;
    }

    .interior-preview {
        width: 52px;
        height: 52px;
        border-radius: 8px;
    }

    .color-name,
    .wheel-name,
    .interior-name,
    .option-name {
        font-size: 14px;
        font-weight: 500;
    }

    .color-price,
    .wheel-price,
    .interior-price,
    .option-price {
        font-size: 12px;
    }

    /* 底部栏 */
    .bottom-bar {
        padding: 12px 16px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        gap: 14px;
        flex-wrap: wrap;
    }

    .version-info-bottom {
        flex: 1;
        min-width: 200px;
    }

    .version-name {
        font-size: 17px;
        font-weight: 600;
    }

    .version-specs {
        font-size: 11px;
        line-height: 1.5;
    }

    .total-price {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .total-label {
        font-size: 12px;
    }

    .total-value {
        font-size: 26px;
        font-weight: 700;
    }

    .btn-submit {
        padding: 14px 32px;
        font-size: 15px;
        min-height: 48px;
        font-weight: 600;
        border-radius: 14px;
    }

    /* 报价模态框 */
    .quote-modal {
        padding: 28px 20px;
        padding-top: 50px; /* 为关闭按钮留出空间 */
        border-radius: 20px;
        width: 94vw;
        width: min(94vw, 420px);
        max-height: 88vh;
        max-height: calc(88vh - env(safe-area-inset-top));
    }

    .quote-close-btn {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .quote-modal-title {
        font-size: 20px;
        font-weight: 700;
    }

    .quote-modal-subtitle {
        font-size: 13px;
    }
    
    /* 优化表单输入触摸体验 */
    .quote-field input {
        padding: 14px 16px;
        font-size: 16px;
        min-height: 48px;
        border-radius: 12px;
    }
    
    .quote-field label {
        font-size: 13px;
    }
    
    .quote-summary {
        padding: 16px;
        border-radius: 14px;
    }
    
    .quote-summary-price {
        font-size: 26px;
    }
    
    .btn-quote-submit {
        padding: 16px;
        min-height: 52px;
        font-size: 16px;
        border-radius: 14px;
    }

    .quote-choice-btns {
        flex-direction: column;
        gap: 12px;
    }

    .quote-choice-btn {
        padding: 22px 16px;
        border-radius: 14px;
    }
    .quote-choice-wxid {
        font-size: 12px;
        margin-top: 6px;
    }
}

/* 小屏手机 (小于480px) */
@media (max-width: 480px) {
    .car-display {
        height: 40vh;
        min-height: 40vh;
    }

    .config-panel {
        min-height: 60vh;
    }

    .view-toggle {
        top: 8px;
        right: 8px;
        gap: 6px;
    }

    .toggle-btn {
        width: 40px;
        height: 30px;
        font-size: 11px;
    }

    .download-btn {
        display: none; /* 小屏隐藏下载按钮 */
    }

    .panel-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        gap: 6px;
    }

    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 9px 12px;
        font-size: 12px;
    }
    
    .reset-all {
        padding: 7px 10px;
        font-size: 12px;
    }
    
    /* 选项卡片进一步优化 */
    .color-item,
    .interior-item {
        padding: 12px 14px;
        min-height: 56px;
    }
    
    .interior-preview {
        width: 48px;
        height: 48px;
    }

    /* 底部栏优化 */
    .total-value {
        font-size: 24px;
    }
    
    .btn-submit {
        padding: 13px 26px;
        min-height: 46px;
        font-size: 14px;
    }

    .version-info-bottom {
        padding: 8px 12px;
    }

    .version-name {
        font-size: 15px;
    }
    
    .version-specs {
        font-size: 12px;
    }

    .detail-text-simple {
        font-size: 12px;
    }
    
    /* 模态框进一步优化 */
    .quote-modal {
        padding: 24px 16px;
        padding-top: 46px;
        border-radius: 16px;
    }
    
    .quote-modal-title {
        font-size: 19px;
    }
    
    .quote-field input {
        padding: 13px 14px;
        font-size: 15px;
        min-height: 46px;
    }
    
    .btn-quote-submit {
        padding: 14px;
        min-height: 50px;
        font-size: 15px;
    }
}

/* ============ 左侧联系快捷导航 ============ */
.contact-sidebar {
    position: fixed;
    left: 0;
    top: calc(50% + 72px);
    transform: translateY(-50%);
    z-index: 9998;
    display: flex;
    align-items: center;
}

.inquiry-sidebar {
    top: calc(50% - 72px);
    z-index: 9999;
}

.inquiry-sidebar .csb-tab {
    background: linear-gradient(135deg, #2f80ed, #1b63c7);
    box-shadow: 2px 0 12px rgba(47,128,237,0.28);
}

.inquiry-sidebar .csb-tab:hover {
    background: linear-gradient(135deg, #4a95f4, #2f80ed);
    box-shadow: 2px 0 20px rgba(47,128,237,0.42);
}

body.inquiry-modal-open {
    overflow: hidden;
}

.inquiry-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 13, 26, 0.78);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.inquiry-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.inquiry-modal {
    position: relative;
    width: min(640px, calc(100vw - 48px));
    max-height: min(760px, calc(100vh - 48px));
    overflow-y: auto;
    padding: 28px;
    border: 1px solid rgba(47, 128, 237, 0.28);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(17, 31, 56, 0.98), rgba(12, 20, 37, 0.98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    color: #fff;
    transform: translateY(10px) scale(0.98);
    transition: transform 0.2s ease;
}

.inquiry-overlay.active .inquiry-modal {
    transform: translateY(0) scale(1);
}

.inquiry-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.inquiry-close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.inquiry-modal-header {
    padding-right: 44px;
    margin-bottom: 22px;
}

.inquiry-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #d4a574;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.inquiry-modal h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0;
}

.inquiry-modal p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.6;
}

.csb-tab {
    width: 28px;
    height: 116px;
    background: linear-gradient(135deg, #d4a574, #c9a067);
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 2px 0 12px rgba(212,165,116,0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0.5;
}

.csb-tab:hover {
    background: linear-gradient(135deg, #e0b684, #d4a574);
    box-shadow: 2px 0 20px rgba(212,165,116,0.5);
    opacity: 1;
}

.csb-tab-text {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

html[lang="zh-CN"] .csb-tab-text {
    writing-mode: vertical-rl;
    letter-spacing: 2px;
}

html[lang="en"] .csb-tab {
    height: 148px;
}

html[lang="en"] .contact-sidebar { top: calc(50% + 88px); }
html[lang="en"] .inquiry-sidebar { top: calc(50% - 88px); }

html[lang="en"] .csb-tab-text {
    display: inline-block;
    min-width: 128px;
    transform: rotate(-90deg);
    transform-origin: center;
    font-size: 12px;
    letter-spacing: 0.4px;
}

.csb-panel {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    max-height: 80vh;
    overflow-y: auto;
    background: rgba(20,20,30,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212,165,116,0.25);
    border-radius: 0 12px 12px 0;
    box-shadow: 4px 0 30px rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.25s ease;
    transform: translateY(-50%) translateX(-8px);
}

.contact-sidebar.open .csb-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.csb-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    font-weight: 700;
    color: #d4a574;
    letter-spacing: 2px;
}

.csb-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.csb-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.csb-panel-body {
    padding: 4px 8px;
}

.csb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s ease;
}

.csb-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.csb-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.csb-item-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.csb-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 6px 2px;
}

.inquiry-form {
    padding: 0;
}

.inquiry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.inquiry-field {
    display: block;
}

.inquiry-field-wide {
    grid-column: 1 / -1;
}

.inquiry-field span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    color: rgba(255,255,255,0.72);
}

.inquiry-field input,
.inquiry-field select,
.inquiry-country-trigger {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 7px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 14px;
    outline: none;
}

.inquiry-field select {
    cursor: pointer;
}

.inquiry-country-field {
    position: relative;
}

.inquiry-country-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.inquiry-country-trigger::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255,255,255,0.72);
    border-bottom: 2px solid rgba(255,255,255,0.72);
    transform: rotate(45deg) translateY(-2px);
    flex: 0 0 auto;
}

.inquiry-country-list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 2;
    max-height: min(240px, calc(100vh - 420px));
    overflow-y: auto;
    border: 1px solid rgba(47,128,237,0.45);
    border-radius: 7px;
    background: #14213d;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.inquiry-country-list.active {
    display: block;
}

.inquiry-country-option {
    display: block;
    width: 100%;
    min-height: 36px;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
}

.inquiry-country-option:last-child {
    border-bottom: 0;
}

.inquiry-country-option:hover,
.inquiry-country-option:focus {
    background: rgba(47,128,237,0.22);
    outline: none;
}

.inquiry-field select option {
    background: #14213d;
    color: #fff;
}

.inquiry-field input:focus,
.inquiry-field select:focus,
.inquiry-country-trigger:focus {
    border-color: rgba(47,128,237,0.85);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 3px rgba(47,128,237,0.16);
}

.inquiry-field input::placeholder {
    color: rgba(255,255,255,0.72);
    opacity: 0.5;
}

.inquiry-email-row {
    display: flex;
    gap: 8px;
}

.inquiry-email-row input {
    min-width: 0;
    flex: 1 1 auto;
}

.inquiry-email-row select {
    width: 160px;
    flex: 0 0 160px;
}

.inquiry-submit {
    width: 100%;
    height: 46px;
    margin-top: 18px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(135deg, #2f80ed, #1b63c7);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(47, 128, 237, 0.25);
}

.inquiry-submit:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.inquiry-status {
    min-height: 20px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255,255,255,0.6);
}

.inquiry-status.success {
    color: #39d98a;
}

.inquiry-status.error {
    color: #ff7878;
}

@media (max-width: 768px) {
    .contact-sidebar { top: calc(50% + 58px); }
    .inquiry-sidebar { top: calc(50% - 58px); }
    .csb-tab { width: 22px; height: 88px; }
    .csb-tab-text { font-size: 10px; }
    html[lang="en"] .csb-tab { height: 126px; }
    html[lang="en"] .contact-sidebar { top: calc(50% + 77px); }
    html[lang="en"] .inquiry-sidebar { top: calc(50% - 77px); }
    html[lang="en"] .csb-tab-text { min-width: 112px; font-size: 10px; }
    .csb-panel { width: 160px; max-height: 70vh; }
    .csb-item { padding: 5px 8px; font-size: 10px; }
    .csb-item-icon { width: 24px; height: 24px; }
    .inquiry-overlay { padding: 14px; }
    .inquiry-modal { width: min(100%, calc(100vw - 28px)); padding: 22px; max-height: calc(100vh - 28px); }
    .inquiry-modal h2 { font-size: 22px; }
    .inquiry-grid { grid-template-columns: 1fr; gap: 12px; }
    .inquiry-field-wide { grid-column: auto; }
    .inquiry-email-row { flex-direction: column; }
    .inquiry-email-row select { width: 100%; flex-basis: auto; }
}

.video-switch-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.vsb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border: 2px solid rgba(212, 165, 116, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 0.5px;
    text-align: center;
}

.vsb-btn:hover {
    border-color: rgba(212, 165, 116, 0.8);
    color: #d4a574;
    background: rgba(212, 165, 116, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.15);
}

.vsb-btn.active {
    border-color: #d4a574;
    color: #d4a574;
    background: rgba(212, 165, 116, 0.12);
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.2);
}

.vsb-btn::before {
    content: '▶';
    margin-right: 10px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .video-switch-btns {
        gap: 12px;
    }
    .vsb-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    border: 1px solid rgba(7, 193, 96, 0.4);
}

.copy-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ========== 文章页面 & FAQ 共用样式 ========== */
/* 双语切换控制 — 由 i18n.js 设置 document.documentElement.lang */
html[lang="zh-CN"] .lang-en,
html[lang="en"] .lang-zh { display: none !important; }
body.article-layout {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e8eef5 100%);
    color: #1a1a2e;
    min-height: 100vh;
    padding-top: 80px;
}
.article-page { width: 100%; max-width: 860px; margin: 0 auto; padding: 40px 20px 80px; }
.article-hero-img { width: 100%; height: 400px; object-fit: cover; border-radius: 16px; margin-bottom: 40px; background: linear-gradient(135deg, #e5e7eb, #d1d5db); }
.article-header { margin-bottom: 40px; }
.article-date { font-size: 13px; font-weight: 700; color: #d4a574; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.article-title { font-size: 42px; font-weight: 800; color: #1a1a2e; line-height: 1.2; margin-bottom: 20px; }
.article-body { font-size: 17px; color: #374151; line-height: 1.9; }
.article-body p { margin-bottom: 24px; }
.article-body h2 { font-size: 24px; font-weight: 700; color: #1a1a2e; margin: 40px 0 16px; }
.article-body h3 { font-size: 20px; font-weight: 700; color: #1a1a2e; margin: 32px 0 12px; }
.article-cta { background: linear-gradient(135deg, #d4a574, #c9a067); color: white; padding: 32px; border-radius: 14px; text-align: center; margin: 48px 0; }
.article-cta h3 { color: white; font-size: 22px; margin-bottom: 12px; }
.article-cta p { color: rgba(255,255,255,0.9); font-size: 16px; margin-bottom: 20px; }
.article-cta a { display: inline-block; background: white; color: #d4a574; padding: 14px 36px; border-radius: 30px; font-weight: 700; font-size: 15px; text-decoration: none; transition: all 0.3s; }
.article-cta a:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.faq-section { margin-top: 56px; }
.faq-section-title { font-size: 26px; font-weight: 800; color: #1a1a2e; margin-bottom: 28px; }
.faq-item { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 14px; overflow: hidden; transition: all 0.3s; }
.faq-item:hover { border-color: #d4a574; box-shadow: 0 4px 20px rgba(212,165,116,0.08); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; cursor: pointer; user-select: none; touch-action: manipulation; }
.faq-question-text { font-size: 16px; font-weight: 700; color: #0f172a; line-height: 1.5; padding-right: 20px; }
.faq-icon { width: 24px; height: 24px; border: 2px solid #d4a574; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.faq-icon span { display: block; width: 10px; height: 2px; background: #d4a574; position: relative; }
.faq-icon span::after { content: ''; position: absolute; width: 10px; height: 2px; background: #d4a574; transform: rotate(90deg); transition: transform 0.3s; }
.faq-item.active .faq-icon span::after { transform: rotate(0deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s; }
.faq-answer-inner { padding: 0 24px 24px; font-size: 15px; color: #475569; line-height: 1.8; }
.faq-item.active .faq-answer { max-height: 500px; }
.breadcrumb { font-size: 14px; color: #94a3b8; margin-bottom: 24px; }
.breadcrumb a { color: #d4a574; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .article-title { font-size: 28px; }
    .article-body { font-size: 15px; }
    .article-hero-img { height: 220px; }
}
