/* 2810-1100KV 电机详情页特定样式 */

/* 全局变量 */
:root {
    --autel-blue: #003b8f;
    --autel-light-blue: #0077c8;
    --autel-hover-blue: #004fa3;
    --autel-gray: #f1f1f1;
    --autel-text: #333;
    --autel-light-text: #666;
    --autel-border: #e1e1e1;
    --image-aspect-ratio: 1/1;
    /* 统一图片比例，正方形 */
}

/* 基础重置 */
body {
    font-family: "Microsoft YaHei", "Arial", sans-serif;
    color: var(--autel-text);
    line-height: 1.6;
    background-color: white;
}

/* 面包屑导航样式 */
.breadcrumb-section {
    background-color: white;
    padding: 20px 0 10px;
    border-bottom: 1px solid var(--autel-border);
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 14px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb a {
    color: var(--autel-light-text);
    transition: all 0.2s ease;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--autel-light-blue);
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb .current {
    color: var(--autel-light-blue);
    font-weight: 500;
}

/* 产品详情部分样式 */
.motor-details-section {
    padding: 40px 0;
    background-color: white;
}

.motor-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.motor-header {
    text-align: left;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--autel-border);
    padding-bottom: 15px;
}

.motor-header h1 {
    font-size: 28px;
    color: var(--autel-blue);
    margin-bottom: 10px;
    font-weight: 600;
    display: inline-block;
    position: relative;
}

/* 产品简介 */
.product-brief {
    color: var(--autel-light-text);
    font-size: 16px;
    margin-top: 5px;
    margin-bottom: 0;
}

.motor-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background-color: white;
    padding: 0;
}

/* 图片展示区域 */
.motor-gallery {
    flex: 1;
    min-width: 350px;
    max-width: 500px;
}

.main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* 移除固定高度，使用宽高比保持正方形 */
    margin-bottom: 20px;
    border: 1px solid var(--autel-border);
    transition: all 0.3s ease;
    padding: 10px;
    background-color: white;
    object-fit: contain;
    /* 保持图片比例，确保完整显示 */
}

.main-image:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thumbnail-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.thumbnail-container::-webkit-scrollbar {
    height: 5px;
}

.thumbnail-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: contain;
    /* 改为contain，确保图片完整显示不被裁剪 */
    cursor: pointer;
    border: 1px solid var(--autel-border);
    padding: 3px;
    background-color: white;
    transition: all 0.2s ease;
}

.thumbnail.active {
    border-color: var(--autel-light-blue);
}

.thumbnail:hover {
    border-color: var(--autel-light-blue);
    transform: translateY(-3px);
}

/* 产品信息区域 */
.motor-info {
    flex: 1;
    min-width: 350px;
}

.motor-info h2 {
    font-size: 24px;
    color: var(--autel-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--autel-border);
    font-weight: 600;
}

/* 产品元数据 */
.product-meta {
    margin-bottom: 25px;
}

.meta-item {
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
}

.meta-label {
    color: var(--autel-light-text);
    font-weight: 500;
    min-width: 80px;
}

.meta-value {
    color: var(--autel-text);
}

/* 选项卡样式 */
.feature-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--autel-border);
    background-color: #f9f9f9;
}

.feature-tab {
    padding: 12px 25px;
    cursor: pointer;
    font-weight: 500;
    color: var(--autel-text);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    background-color: #f9f9f9;
    margin-right: 1px;
}

.feature-tab.active {
    color: white;
    background-color: var(--autel-blue);
    border-bottom-color: var(--autel-blue);
}

.feature-tab:hover:not(.active) {
    background-color: #e9e9e9;
}

.feature-content {
    display: none;
    padding: 20px 5px;
}

.feature-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 规格表样式 */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    border: 1px solid var(--autel-border);
}

.spec-table tr {
    border-bottom: 1px solid var(--autel-border);
}

.spec-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.spec-table tr:hover {
    background-color: #f1f1f1;
}

.spec-table td {
    padding: 12px 15px;
    border-right: 1px solid var(--autel-border);
}

.spec-table td:first-child {
    font-weight: 600;
    width: 40%;
    color: var(--autel-text);
    background-color: #f5f5f5;
}

/* 特性列表样式 */
.feature-list {
    padding-left: 0;
    list-style-type: none;
}

.feature-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 28px;
    line-height: 1.6;
}

.feature-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--autel-light-blue);
    position: absolute;
    left: 0;
    top: 2px;
}

/* 下载按钮样式 */
.download-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--autel-border);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.primary-btn {
    background-color: var(--autel-blue);
    color: white;
}

.primary-btn:hover {
    background-color: var(--autel-hover-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
    background-color: white;
    color: var(--autel-blue);
    border: 1px solid var(--autel-blue);
}

.secondary-btn:hover {
    background-color: #f0f7ff;
    transform: translateY(-2px);
}

/* 产品优势部分 */
.product-advantages-section {
    padding: 60px 0;
    background-color: #f7f9fc;
}

.product-advantages-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.advantages-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.advantage-item {
    flex: 1;
    min-width: 230px;
    max-width: 300px;
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.advantage-icon i {
    font-size: 30px;
    color: var(--autel-light-blue);
}

.advantage-item h3 {
    font-size: 18px;
    color: var(--autel-blue);
    margin-bottom: 15px;
}

.advantage-item p {
    color: var(--autel-light-text);
    font-size: 14px;
    line-height: 1.6;
}

/* 应用场景部分 */
.application-section {
    padding: 70px 0;
    background-color: white;
}

.application-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.applications-container {
    margin-top: 40px;
}

.application-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

.application-item.reverse {
    flex-direction: row-reverse;
}

.application-item img {
    flex: 1;
    width: 500px;
    /* 统一宽度 */
    height: 350px;
    /* 统一高度 */
    object-fit: contain;
    /* 保持图片比例，完整显示 */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.application-item:hover img {
    transform: scale(1.03);
}

.application-content {
    flex: 1;
}

.application-content h3 {
    font-size: 24px;
    color: var(--autel-blue);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.application-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--autel-light-blue);
}

.application-content p {
    font-size: 16px;
    color: var(--autel-light-text);
    line-height: 1.7;
}

/* 相关产品区域 */
.related-products-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    border-top: 1px solid var(--autel-border);
}

.related-products-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: var(--autel-blue);
    position: relative;
    display: block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--autel-light-blue);
}

.related-products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.related-product {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 250px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--autel-border);
    position: relative;
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: -30px;
    background-color: var(--autel-light-blue);
    color: white;
    font-size: 12px;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-weight: 500;
}

.related-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.related-product img {
    width: 100%;
    height: 200px;
    /* 统一高度 */
    object-fit: contain;
    /* 保持图片比例，完整显示 */
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.related-product:hover img {
    transform: scale(1.05);
}

.related-product h3 {
    font-size: 18px;
    color: var(--autel-text);
    margin-bottom: 15px;
    font-weight: 600;
}

.product-desc {
    color: var(--autel-light-text);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    height: 45px;
    overflow: hidden;
}

.view-details-btn {
    display: inline-block;
    padding: 8px 20px;
    color: var(--autel-blue);
    border: 1px solid var(--autel-blue);
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.view-details-btn:hover {
    background-color: var(--autel-blue);
    color: white;
}

/* 实现类似Autel的页脚样式 */
.footer {
    background-color: #2f3640;
}

.footer-container {
    padding: 40px 20px;
}

.footer-title h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 5px;
}

.footer-subtitle {
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 30px;
}

.footer-contact .contact-info {
    color: #e0e0e0;
}

.company-address p {
    margin-bottom: 8px;
    color: #a0a0a0;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    background-color: #1e272e;
    padding: 15px 20px;
    text-align: center;
}

.footer-bottom p {
    color: #a0a0a0;
    font-size: 14px;
    margin: 5px 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .motor-content {
        flex-direction: column;
    }

    .motor-gallery {
        max-width: 100%;
    }

    .main-image {
        height: 350px;
        /* 较小屏幕时的高度 */
    }

    .related-product {
        flex: 0 0 calc(50% - 15px);
    }

    .advantages-container {
        gap: 20px;
    }

    .advantage-item {
        min-width: 200px;
    }

    .application-item,
    .application-item.reverse {
        flex-direction: column;
        gap: 20px;
    }

    .application-item img {
        width: 100%;
        height: 300px;
        /* 响应式调整高度 */
    }
}

@media (max-width: 768px) {
    .motor-header h1 {
        font-size: 24px;
    }

    .motor-info h2 {
        font-size: 22px;
    }

    .feature-tab {
        padding: 10px 15px;
        font-size: 14px;
    }

    .spec-table td {
        padding: 10px;
    }

    .thumbnail {
        width: 70px;
        height: 70px;
    }

    .main-image {
        height: 300px;
        /* 平板尺寸下的高度 */
    }

    .section-title {
        font-size: 24px;
    }

    .advantage-item {
        flex: 0 0 calc(50% - 20px);
        max-width: none;
    }

    .application-item img {
        height: 250px;
        /* 较小屏幕的高度调整 */
    }

    .related-product img {
        height: 180px;
        /* 响应式调整高度 */
    }
}

@media (max-width: 576px) {
    .motor-header h1 {
        font-size: 22px;
    }

    .product-brief {
        font-size: 14px;
    }

    .motor-info h2 {
        font-size: 20px;
    }

    .main-image {
        height: 250px;
        /* 手机尺寸下的高度 */
    }

    .feature-tabs {
        flex-wrap: wrap;
    }

    .feature-tab {
        flex: 1 0 auto;
        text-align: center;
        min-width: 120px;
    }

    .related-product {
        flex: 0 0 100%;
    }

    .related-product img {
        height: 160px;
        /* 手机屏幕下的高度 */
    }

    .breadcrumb {
        font-size: 12px;
    }

    .spec-table td {
        padding: 8px;
        font-size: 14px;
    }

    .advantage-item {
        flex: 0 0 100%;
    }

    .advantage-icon {
        width: 60px;
        height: 60px;
    }

    .download-section {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        justify-content: center;
    }

    .application-item img {
        height: 200px;
        /* 手机屏幕下的高度 */
    }
}

/* 产品选择部分样式 */
.product-selection {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--autel-border);
    padding-bottom: 20px;
}

.selection-section {
    margin-bottom: 25px;
}

.selection-title {
    font-size: 16px;
    color: var(--autel-text);
    margin-bottom: 15px;
    font-weight: 500;
}

/* 型号选择样式 */
.option-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.option-item {
    width: calc(33.333% - 10px);
    min-width: 100px;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.option-item.active {
    border-color: var(--autel-light-blue);
    background-color: #f0f7ff;
}

.option-item:hover:not(.active) {
    border-color: #ddd;
    transform: translateY(-3px);
}

.option-image {
    text-align: center;
    margin-bottom: 10px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.option-info {
    text-align: center;
}

.option-name {
    display: block;
    font-weight: 600;
    color: var(--autel-text);
    margin-bottom: 5px;
}

.option-desc {
    display: block;
    font-size: 13px;
    color: var(--autel-light-text);
}

/* 颜色选择样式 */
.color-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-item.active {
    box-shadow: 0 0 0 2px var(--autel-light-blue);
}

.color-item:hover:not(.active) {
    transform: scale(1.1);
}

.color-name {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--autel-text);
    white-space: nowrap;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .option-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .option-item {
        width: 100%;
    }

    .color-container {
        justify-content: center;
    }
}