/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    border: none;
}

/* 导航栏样式 */
.pc-navbar-container {
    background-color: #333;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pc-navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.pc-logo img {
    height: 40px;
}

.pc-search-menu {
    display: flex;
    align-items: center;
}

.pc-search-box {
    margin-right: 30px;
}

.pc-search-box input {
    width: 250px;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    outline: none;
}

.pc-menu a {
    margin: 0 15px;
    font-size: 16px;
    color: white;
    transition: color 0.3s;
}

.pc-menu a:hover {
    color: #f8b62d;
}

/* 主要内容区域 */
.pc-main-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 品牌分类区域 */
.pc-brand-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.pc-brand-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.pc-brand-item:hover {
    transform: translateY(-5px);
}

.pc-brand-thumb {
    height: 150px;
    background-color: #eee;
    background-position: center;
    background-size: cover;
}

.pc-brand-info {
    padding: 15px;
}

.pc-brand-cnname {
    font-weight: bold;
    margin-bottom: 5px;
}

.pc-brand-enname {
    color: #666;
    font-size: 14px;
}

/* 文章列表 */
.pc-article-section {
    margin: 40px 0;
}

.pc-article-item {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.pc-article-thumb {
    width: 200px;
    height: 150px;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;               /* 关键属性：启用flex布局 */
    align-items: center;         /* 关键属性：垂直居中 */
    justify-content: center;     /* 关键属性：水平居中 */
    border: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
/* 图片智能适配规则 */
.pc-article-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;         /* 保持比例完整显示 */
    transition: all 0.3s ease;
    background-color: white;     /* 为透明图片添加背景 */
}

/* 鼠标悬停效果 */
.pc-article-thumb:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}


.pc-article-meta {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    display: flex;
    align-items: center;
}
.pc-article-meta::before {
    content: "🕒";
    margin-right: 5px;
    font-size: 11px;
}
.pc-article-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e0e0e0; /* 添加浅灰色边框 */
    border-radius: 4px; /* 圆角效果 */
    background-color: #fff; /* 白色背景确保边框可见 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* 可选：轻微阴影增强立体感 */
}

.pc-article-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.pc-article-content img {
    max-width: 450px; /* PC端最大宽度 */
    width: auto;
    height: auto;
    display: block;
    margin: 10px auto; /* 垂直间距+水平居中 */
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}




/* ========== 标题样式 ========== */
.pc-article-content h2 {
    font-size: 22px;
    color: #222;
    font-weight: 600;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}
.pc-article-content h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 80px;
    height: 2px;
    background: #f8b62d;
}

.pc-article-content h3 {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin: 20px 0 12px;
    padding-left: 10px;
    border-left: 3px solid #f8b62d;
}

.pc-article-content h4 {
    font-size: 16px;
    color: #444;
    font-weight: 500;
    margin: 15px 0 10px;
    display: flex;
    align-items: center;
}
.pc-article-content h4::before {
    content: "•";
    color: #f8b62d;
    margin-right: 8px;
    font-size: 20px;
}

/* ========== 列表样式 ========== */
.pc-article-content ul,
.pc-article-content ol {
    margin: 12px 0;
    padding-left: 30px;
}

/* 无序列表样式 */
.pc-article-content ul li {
    list-style-type: none;
    position: relative;
    padding: 3px 0;
    color: #555;
}
.pc-article-content ul li::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 12px;
    width: 6px;
    height: 6px;
    background: #f8b62d;
    border-radius: 50%;
}

/* 有序列表样式（隐藏默认序号） */
.pc-article-content ol {
    counter-reset: custom-counter;
}
.pc-article-content ol li {
    list-style-type: none;
    position: relative;
    padding: 3px 0 3px 25px;
    counter-increment: custom-counter;
    color: #555;
}
.pc-article-content ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background: #f8b62d;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    text-align: center;
    line-height: 18px;
}




/* 田字格样式表格 */
.xiangqingtable {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    color: #000;
    background: white;
    border: 1px solid #ddd; /* 外边框 */
    box-shadow: none; /* 去除阴影保持简洁 */
}

/* 表头样式（匹配图片中的黄色标题线） */
.xiangqingtable caption {
    text-align: left;
    font-size: 18px;
    padding: 10px 0;
    margin-bottom: 5px;
    border-bottom: 3px solid #f8b62d; /* 图片中的黄色标题线 */
}

/* 单元格基础样式 */
.xiangqingtable th,
.xiangqingtable td {
    padding: 12px 15px;
    border: 1px solid #ddd; /* 田字格边框 */
    text-align: left;
    vertical-align: top;
}

/* 参数名称列（左栏） */
.xiangqingtable th {
    width: 30%;
    background-color: #f9f9f9; /* 浅灰背景 */
    font-weight: normal;
}

/* 参数值列（右栏） */
.xiangqingtable td {
    background-color: white;
}

/* 隔行灰色效果 */
.xiangqingtable tr:nth-child(even) th,
.xiangqingtable tr:nth-child(even) td {
    background-color: #f5f5f5; /* 更浅的灰色 */
}

/* 强度评分特殊处理 */
.xiangqingtable td:contains("●") {
    letter-spacing: 3px;
    color: #333;
}

/* 关键数据强调（如价格） */
.xiangqingtable tr:nth-child(2) td {
    color: #c00;
    font-weight: bold;
}


/* PC端正文段落 */
.pc-article-content p {
    margin: 0 0 16px 0;  /* 与图片中的紧凑间距一致 */
    font-size: 15px;
    line-height: 1.7;    /* 1.5-1.8最佳阅读行距 */
    color: #333;         /* 深灰而非纯黑减轻视觉压力 */
    text-align: justify; /* 两端对齐提升专业感 */
    hyphens: auto;       /* 英文自动断词 */
    
}

/* 首段强调 */
.pc-article-content p:first-child {
    font-size: 16px;
    line-height: 1.8;
    color: #222;
}




.pc-article-btn a {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f8b62d;
    color: white;
    border-radius: 4px;
    font-size: 14px;
}

/* 商品列表 */
.pc-cigar-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.pc-cigar-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pc-cigar-thumb {
    width: 180px;
    height: 180px; /* 建议正方形比例兼容性更好 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 4px;
    position: relative;
}

.pc-cigar-info {
    padding: 15px;
}

.pc-cigar-cnname {
    font-weight: bold;
    margin-bottom: 5px;
}

.pc-cigar-enname {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.pc-cigar-price {
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 10px;
}

.pc-cigar-btn a {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f8b62d;
    color: white;
    border-radius: 4px;
    font-size: 14px;
}

/* 商品详情 */
.pc-goods-header {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.pc-goods-thumb {
    width: 300px;
    height: 300px;
    background-color: #eee;
    background-position: center;
    background-size: cover;
}

.pc-goods-info {
    flex: 1;
    padding: 30px;
}

.pc-goods-cnname {
     font-size: 28px;
    color: #2c1a0a; /* 深咖啡色 */
    font-weight: 600;
    margin: 0 0 5px 0;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}
.pc-goods-cnname::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50%;
    height: 2px;
    background: #c9a769; /* 香槟金色下划线 */
}

.pc-goods-enname {
    font-size: 18px;
    color: #5a4a32; /* 浅咖啡色 */
    font-style: italic;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase; /* 英文全大写 */
}
/* 悬停效果 */
.pc-goods-cnname:hover {
    color: #1f1102;
}
.pc-goods-enname:hover {
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.pc-goods-brand {
    display: inline-block;
    background-color: #f8b62d;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
}



/* 商品规格容器 - 完全匹配图片样式 */
.pc-goods-specs {
    width: 100%;
    background: white;
    padding: 0;
    margin: 0;
    margin-top: 30px;
    font-family: Arial, sans-serif;
    color: #000;
    border-top: 1px solid #e0e0e0; /* 灰色上划线 */
}

/* 列表样式 - 模拟图片中的两栏布局 */
.pc-goods-specs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 两列等宽 */
    gap: 0; /* 无间隙 */
}

/* 列表项样式 - 带下划线 */
.pc-goods-specs li {
    padding: 8px 15px;
    border-bottom: 1px solid #e0e0e0; /* 图片中的灰色下划线 */
    display: flex;
}

/* 属性名样式（左部分） */
.pc-goods-specs li strong {
    display: inline-block;
    width: 80px; /* 固定属性名宽度保持对齐 */
    margin-right: 10px;
    font-weight: normal;
    color: #000;
}

/* 属性值样式（右部分） */
.pc-goods-specs li span {
    flex: 1;
    color: #000;
}

/* 强度评分特殊处理 */
.pc-goods-specs li:contains("·") {
    letter-spacing: 3px;
}


/* 商品描述段落样式 - 匹配图片风格 */
.pc-goods-desc {
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.7;
    max-width: 800px;
    margin: 25px auto; /* 顶部底部留白 */
    padding: 0 15px;
}



/* 段落基础样式 */
.pc-goods-desc p {
    margin: 0 0 22px 0; /* 底部间距匹配图片行距 */
    font-size: 15px;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

/* 首段强调 */
.pc-goods-desc p:first-child {
    margin-top: 20px; /* 顶部额外间距 */
    color: #222;
}



/* 价格跟踪 */
.pc-price-track {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.pc-track-header {
    padding: 15px 20px;
    background-color: #333;
    color: white;
    font-weight: bold;
}

.pc-track-list {
    padding: 20px;
}

.pc-track-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.pc-track-thumb {
    width: 100px;
    height: 100px;
    background-color: #ffffff;
    margin-right: 20px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    display: flex;              /* 关键属性：启用flex布局 */
    align-items: center;        /* 关键属性：垂直居中 */
    justify-content: center;    /* 关键属性：水平居中 */
}

/* 智能图片适配方案 */
.pc-track-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;        /* 保持比例完整显示 */
    transition: all 0.3s ease;
    display: block;
}

/* 鼠标悬停效果 */
.pc-track-thumb:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}


.pc-track-info {
    flex: 1;
}

.pc-track-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.pc-track-enname {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.pc-track-spec {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.pc-track-price {
    color: #e74c3c;
    font-weight: bold;
}

.pc-track-unitprice {
    color: #666;
    font-size: 14px;
}

.pc-track-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.pc-track-discount {
    background-color: #f8b62d;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.pc-track-shop a {
    display: inline-block;
    padding: 5px 15px;
    background-color: #333;
    color: white;
    border-radius: 4px;
    font-size: 14px;
}

/* 相关推荐 */
.pc-related-articles {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.pc-related-header {
    padding: 15px 20px;
    background-color: #333;
    color: white;
    font-weight: bold;
}

.pc-related-list {
    padding: 20px;
}

.pc-related-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.pc-related-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pc-related-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.pc-related-desc {
    color: #666;
    font-size: 14px;
}

/* 页脚 */
.pc-footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.pc-footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.pc-footer-text {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.pc-footer-links a {
    margin: 0 10px;
    font-size: 14px;
    color: white;
}

.pc-footer-links a:hover {
    color: #f8b62d;
}

.pc-footer-copyright {
    margin-top: 20px;
    font-size: 14px;
    color: #999;
}

.pc-footer-copyright a {
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pc-navbar {
        flex-direction: column;
        padding: 15px;
    }
    
    .pc-logo {
        margin-bottom: 15px;
    }
    
    .pc-search-menu {
        width: 100%;
        flex-direction: column;
    }
    
    .pc-search-box {
        width: 100%;
        margin: 0 0 15px 0;
    }
    
    .pc-search-box input {
        width: 100%;
    }
    
    .pc-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pc-menu a {
        margin: 0 10px 10px;
    }
    
    .pc-brand-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .pc-goods-header {
        flex-direction: column;
    }
    
    .pc-goods-thumb {
        width: 100%;
    }
    
    .pc-track-item {
        flex-direction: column;
    }
    
    .pc-track-thumb {
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .pc-track-status {
        flex-direction: row;
        justify-content: space-between;
        margin-top: 15px;
    }
}


/* 主容器样式 - 增强视觉效果 */
.pc-category-info {
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9; /* 浅灰白背景 */
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 20px auto;
    position: relative; /* 为标题区域定位 */
}

/* 标题区域容器 */
.pc-category-title-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

/* 中文标题样式 - 调整间距 */
.pc-category-cnname {
    font-size: 28px;
    color: #333;
    font-weight: bold;
    margin: 0 15px 0 0; /* 只保留右侧间距 */
    display: inline-block;
    vertical-align: middle;
}

/* 品牌logo容器 - 精确对齐标题 */
.pc-category-thumb {
    display: inline-flex;
    width: 60px;  /* 更协调的尺寸 */
    height: 60px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    vertical-align: middle;
    position: relative;
    top: -2px; /* 微调垂直对齐 */
}

.pc-category-thumb img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* 英文标题样式 */
.pc-category-enname {
    font-size: 18px;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
    clear: both; /* 确保换行 */
}

/* 描述文本样式 */
.pc-category-desc {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
}



.pc-category-desc p {
    margin-bottom: 15px; /* 段落间距 */
}

/* 雪茄数量统计样式 */
.pc-category-count {
    font-size: 14px;
    color: #888;
    background-color: #f0f0f0;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block; /* 自适应宽度 */
    border-left: 3px solid #c00; /* 红色左侧装饰线 */
}


.pc-cigar-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;  /* 关键：裁剪空白保留主体 */
    object-position: center 30%; /* 将雪茄环标区域置于视觉中心 */
}






















/* 主容器样式 */
.pc-main-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: #333;
}

/* 面包屑导航 */
.pc-breadcrumb {
    padding: 10px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.pc-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.pc-breadcrumb a:hover {
    color: #c00;
}

/* 产品详情区域 */
.pc-product-detail {
    display: flex;
    margin-bottom: 40px;
    gap: 30px;
}

/* 产品图库 */
.pc-product-gallery {
    width: 45%;
}

/* 优化后的产品主图容器 - 保留原有flex布局特性 */
.pc-product-main-image {
    width: 100%;
    height: 400px;
    background-color: #f5f5f5;
    border: 1px solid #eee; /* 调整为更柔和的边框色 */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 4px; /* 添加轻微圆角 */
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* 添加柔和阴影 */
}

/* 产品主图样式 */
.pc-product-main-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    cursor: zoom-in;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); /* 为图片添加投影 */
}

/* 悬停交互效果 */
.pc-product-main-image:hover {
    border-color: #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pc-product-main-image:hover img {
    transform: scale(1.03);
}





.pc-product-thumbnails {
    display: flex;
    gap: 10px;
}

.pc-product-thumb {
    width: 80px;
    height: 80px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    cursor: pointer;
}

/* 产品信息 */
.pc-product-info {
    width: 55%;
}

.pc-product-title {
    font-size: 24px;
    margin: 0 0 5px 0;
    color: #222;
}

.pc-product-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px 0;
    font-weight: normal;
}

.pc-product-shop a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #c00;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.pc-product-shop a:hover {
    background-color: #a00;
}

/* 产品规格 */
.pc-product-specs {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pc-spec-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.pc-spec-item:last-child {
    border-bottom: none;
}

.pc-spec-label {
    width: 120px;
    color: #666;
    font-size: 14px;
}

.pc-spec-value {
    flex: 1;
    font-size: 14px;
}

.pc-spec-value a {
    color: #06c;
    text-decoration: none;
}

.pc-spec-value a:hover {
    text-decoration: underline;
}

.pc-spec-value.highlight {
    color: #c00;
    font-weight: bold;
}

/* 相关产品 */
.pc-related-products {
    margin-top: 40px;
}

.pc-section-title {
    font-size: 20px;
    border-left: 4px solid #c00;
    padding-left: 10px;
    margin-bottom: 20px;
}

.pc-related-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.pc-related-item {
    border: 1px solid #eee;
    padding: 10px;
    transition: box-shadow 0.3s;
    background-color: #fff; /* 添加白色背景 */
    border-radius: 4px; /* 添加圆角 */
}

.pc-related-item:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.pc-related-image {
    width: 100%;
    height: 150px;
    background-color: #f5f5f5;
    margin-bottom: 10px;
}

.pc-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例并填满容器 */
    transition: transform 0.3s ease; /* 平滑过渡效果 */
    display: block; /* 消除图片底部间隙 */
}

/* 鼠标悬停时图片放大效果 */
.pc-related-image:hover img {
    transform: scale(1.05); /* 轻微放大 */
}

/* 图片链接样式 */
.pc-related-image a {
    display: block;
    width: 100%;
    height: 100%;
}



.pc-related-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.pc-related-info h4 a {
    color: #333;
    text-decoration: none;
}

.pc-related-info h4 a:hover {
    color: #c00;
}

.pc-related-info p {
    margin: 3px 0;
    font-size: 12px;
    color: #666;
}











/* 主图容器（固定比例） */
.main-image-container {
    aspect-ratio: 1/1; /* 正方形比例，可根据需要调整 */
    width: 100%;
    overflow: hidden;
    margin-bottom: 10px;
    background: #ffffff;
    border-radius: 4px;
}
/* 主图样式 */
#mainimg {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持比例完整显示 */
    display: block;
    transition: opacity 0.3s;
}
/* 缩略图列表容器 */
.imggoodslist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 5px;
    overflow-x: auto;
    scrollbar-width: thin; /* 适用于 Firefox */
}

/* 自定义滚动条 (适用于 Webkit 浏览器) */
.imggoodslist::-webkit-scrollbar {
    height: 4px;
}
.imggoodslist::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* 缩略图项 - 固定正方形比例 */
.imggoodslistid {
    width: 60px;
    height: 60px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative; /* 为绝对定位图片做准备 */
}


.imggoodslistid:hover {
    border-color: #1890ff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 方案1：居中裁剪（推荐） */
.imggoodslistid img {
    position: absolute;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; /* 确保宽度至少填满容器 */
}
/* 缩略图容器改为可点击区域 */
.imggoodslistid {
    cursor: pointer;
    position: relative;
    /* 其他原有样式保持不变 */
}

/* 高亮状态更明显 */
.imggoodslistid.active {
    border: 2px solid #1890ff;
    box-shadow: 0 0 8px rgba(24, 144, 255, 0.4);
    transform: scale(1.05);
    transition: all 0.2s ease;
}