﻿ 
 /* 面包屑导航 */
.breadcrumb {
    width: 1200px;
    margin: 1rem auto 0;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #666;
}

    .breadcrumb a {
        color: #3687d9;
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

    .breadcrumb span {
        margin: 0 0.3rem;
        color: #999;
    }

/* 主要内容区域 */
.main-content {
    width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

/* 产品详情区域 */
.product-detail-container {
    width: 100%;
    background-color: white;
    padding: 1rem;
    border: 1px solid #e8e8e8;
    margin-bottom: 1.25rem;
}

/* 产品标题和元信息 */
.product-header {
    width: 100%;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-meta {
    font-size: 0.875rem;
    color: #999;
    text-align: right;
}

/* 产品内容区域 */
.product-content {
    display: flex;
    gap: 1.25rem;
}

/* 左侧产品图片区域 - 已修改为480px */
.product-images {
    width: 480px; /* 修改为480px */
    position: relative; /* 为子元素定位做准备 */
}

.main-image-container {
    width: 100%;
    height: 300px;
    margin-bottom: 1rem;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 缩略图容器 - 已修改 */
.thumbnail-container {
    display: flex;
    flex-wrap: nowrap; /* 禁止换行保持单行显示 */
    gap: 0.5rem;
    overflow-x: auto; /* 超出部分显示横向滚动条 */
    scrollbar-width: thin; /* Firefox滚动条细样式 */
    scrollbar-color: #3687d9 #f5f5f5; /* Firefox滚动条颜色 */
    padding-bottom: 0.5rem; /* 为滚动条预留空间 */
}

    /* Webkit浏览器滚动条美化 */
    .thumbnail-container::-webkit-scrollbar {
        height: 6px; /* 滚动条高度 */
    }

    .thumbnail-container::-webkit-scrollbar-track {
        background: #f5f5f5; /* 轨道背景色 */
    }

    .thumbnail-container::-webkit-scrollbar-thumb {
        background-color: #3687d9; /* 滑块颜色 */
        border-radius: 6px; /* 滑块圆角 */
    }

.thumbnail {
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    cursor: pointer;
    padding: 0.2rem;
    flex-shrink: 0; /* 防止缩略图被压缩 */
}

    .thumbnail:hover {
        border-color: #3687d9;
    }

    .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* 右侧产品信息区域 */
.product-info {
    width: calc(100% - 480px - 1.25rem); /* 计算剩余宽度 */
}

.attribute-list {
    margin-bottom: 1.5rem;
    /*display: flex;*/
    flex: 1;
}

/* 属性项 - 已修改 */
.attribute-item {
    display: flex;
    margin-bottom: 0; /* 移除原有下边距 */
    font-size: 1rem; /* 调大字体尺寸 */
    height: 2.5rem; /* 固定高度40px */
    align-items: center; /* 垂直居中 */
    border-bottom: 1px solid #f5f5f5; /* 浅灰色下边框 */
    padding: 0.5rem 0; /* 上下内边距 */
}

.attribute-label {
    width: 6rem;
    color: #666;
    font-weight: bold; /* 标签加粗更醒目 */
}

.attribute-value {
    flex: 1;
    color: #333;
}

.shop-link {
    display: inline-block;
    background-color: #f60;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

    .shop-link:hover {
        background-color: #e55c00;
        color: #fff;
    }

.inquiry-button {
    display: inline-block;
    background-color: #f60;
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    margin-top: 1rem;
}

    .inquiry-button:hover {
        background-color: #e55c00;
    }

/* 详细内容区域 - 新增 */
.detail-content {
    width: 100%;
    display: flex;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.detail-left {
    width: 800px;
}

.detail-right {
    width: calc(100% - 800px - 1.25rem);
}

.detail-section {
    background-color: white;
    border: 1px solid #e8e8e8;
    margin-bottom: 1.25rem;
    padding: 1rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title-links a {
    font-size: 0.875rem;
    color: #3687d9;
    text-decoration: none;
    margin-left: 1rem;
}

    .section-title-links a:hover {
        text-decoration: underline;
    }

.company-info-item {
    margin-bottom: 1rem;
}

.company-info-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.company-info-content {
    color: #666;
    line-height: 1.6;
}
    .company-info-content img {
        max-width: 100%;
    }
    .product-description img {
        max-width: 100%;
    }

.news-item {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #e8e8e8;
}

    .news-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .news-item a {
        color: #333;
        text-decoration: none;
        font-size: 0.9375rem;
        display: block;
        line-height: 1.5;
    }

        .news-item a:hover {
            color: #3687d9;
        }

.news-item-date {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.product-item {
    width: calc(50% - 0.5rem);
    margin-bottom: 1rem;
}

.product-item-image {
    width: 100%;
    height: 120px;
    border: 1px solid #e8e8e8;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .product-item-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.product-item-title {
    font-size: 0.875rem;
    color: #333;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

    .product-item-title a {
        color: #333;
        text-decoration: none;
    }

        .product-item-title a:hover {
            color: #3687d9;
        }

 
/* 响应式设计 */
@media (max-width: 1200px) {
    body {
        min-width: auto;
    }

    .header-inner, .nav-container, .main-content, .footer-container, .breadcrumb {
        width: 100%;
        padding: 0 0.9375rem; /* 15px */
    }

    .product-content {
        flex-direction: column;
    }

    .product-images, .product-info {
        width: 100%;
    }

    .detail-content {
        flex-direction: column;
    }

    .detail-left, .detail-right {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        overflow-x: auto;
        white-space: nowrap;
    }

        .nav-menu::-webkit-scrollbar {
            display: none;
        }

    .main-image-container {
        height: 250px;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .header-outer {
        height: auto;
        padding: 0.5rem 0;
        position: relative;
    }

    .nav-bar {
        margin-top: 0;
    }

    .header-left, .header-right {
        width: 100%;
    }

    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 0.625rem;
    }

    .header-left {
        margin-bottom: 0.625rem;
        justify-content: center;
    }

        .header-left a {
            margin: 0 0.625rem 0.3125rem;
        }

    .header-right {
        justify-content: center;
    }

    .search-input {
        width: 12.5rem;
    }

    .nav-logo {
        display: none;
    }

    .nav-menu {
        width: 100%;
        justify-content: space-around;
        margin-left: 0;
    }

        .nav-menu a {
            padding: 0 0.5rem;
            font-size: 0.875rem;
        }

    .main-content {
        flex-direction: column;
        margin-top: 0;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .footer-link {
        margin: 0 0.5rem 0.5rem;
    }

    .footer-qrcodes {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .product-item {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .search-form {
        width: 100%;
    }

    .search-input {
        width: 70%;
    }

    .search-button {
        width: 30%;
    }

    .header-left a span {
        display: none;
    }

    .header-left a i {
        margin-right: 0;
        font-size: 1rem;
    }

    .nav-menu a span {
        display: none;
    }

    .nav-menu a:before {
        content: attr(data-short);
    }

    .main-image-container {
        height: 200px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .footer-info, .footer-cert {
        text-align: left;
    }
}

/* 竖向悬浮在线咨询按钮 - 右侧 */
.floating-consult-btn {
    position: fixed;
    right: 10px; /* 修改为 right */
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    background-color: #3687d9;
    color: white;
    padding: 15px 8px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 2px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    line-height: 1.2;
}

    .floating-consult-btn:hover {
        background-color: #2a6cb9;
        transform: translateY(-50%) scale(1.05);
        padding: 15px 10px;
    }

/* 响应式调整 */
@media (max-width: 768px) {
    .floating-consult-btn {
        right: 10px; /* 修改为 right */
        padding: 12px 6px;
        font-size: 14px;
    }

        .floating-consult-btn:hover {
            padding: 12px 8px;
        }
}

@media (max-width: 480px) {
    .floating-consult-btn {
        padding: 10px 5px;
        font-size: 12px;
        right: 5px; /* 修改为 right */
    }

        .floating-consult-btn:hover {
            padding: 10px 6px;
        }
}

.container {
    /*max-width: 800px;*/
    width: 100%;
    background:#f7f7f7;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);*/

    overflow: hidden;
    /*display: flex;*/
    margin-bottom: 15px;
    border-radius:15px;
}

.card-section {
    flex: 1;
    padding: 5px;
    border-right: 1px solid #f0f0f0;
}

.business-card {
    width: 100%;
    height: 200px;
    background: white;
    display: flex;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.merchant-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff6b6b;
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    border-bottom-left-radius: 6px;
    font-weight: 500;
}

.card-left {
    flex: 1;
    background: linear-gradient(135deg, #4a6fa5, #3a5985);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.source-note {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.4;
}

.card-right {
    flex: 1.5;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info {
    list-style: none;
}

    .contact-info li {
        margin-bottom: 10px;
        display: flex;
    }

        .contact-info li:last-child {
            margin-bottom: 0;
        }

.label {
    width: 50px;
    font-size: 18px;
    color: #666;
    margin-right: 10px;
}

.value {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.wechat-value {
    color: #07c160;
}

.exchange-section {
    flex: 1;
    padding-left: 25px;
    padding-right: 25px;
    padding-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.exchange-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-right: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

    .form-input:focus {
        border-color: #4a6fa5;
        outline: none;
        box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
    }

.submit-btn {
    background: linear-gradient(135deg, #4a6fa5, #3a5985);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    /*margin-top: 10px;*/
}

    .submit-btn:hover {
        background: linear-gradient(135deg, #3a5985, #2a4565);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    margin-top: 15px;
    display: none;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        width: 100%;
        margin-bottom: 15px;
    }

    .card-section {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .business-card {
        flex-direction: column;
        height: auto;
    }

    .card-left, .card-right {
        padding: 15px;
    }

    .contact-name {
        font-size: 20px;
    }
}
