/* 栏目图片显示区域样式 */
.category-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.category-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-banner .banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.category-banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.category-banner p {
    font-size: 18px;
}

/* 内容页内容样式 */
.detail-content {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.detail-content .container {
    display: flex;
    gap: 30px;
}

.detail-sidebar {
    width: 25%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.detail-main {
    width: 75%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-menu {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.category-menu h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.category-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-menu li {
    margin-bottom: 10px;
}

.category-menu a {
    display: block;
    padding: 10px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.category-menu a:hover {
    background-color: #f0f0f0;
    color: #007bff;
}

.sidebar-products {
    padding: 20px;
}

.sidebar-products h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.sidebar-product-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-product-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-product-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.sidebar-product-link:hover {
    opacity: 1;
    background-color: #3498db;
    border-radius: 8px;
}

.sidebar-product-link:hover .sidebar-product-content h4,
.sidebar-product-link:hover .sidebar-product-content p,
.sidebar-product-link:hover .sidebar-product-content span {
    color: #fff;
}

.sidebar-product-link img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.sidebar-product-content {
    flex: 1;
}

.sidebar-product-content h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.sidebar-product-content p {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.sidebar-product-link span {
    font-size: 12px;
    color: #007bff;
}

.detail-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.detail-header h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.meta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
}

/* 新的内容布局样式 */
.detail-content-section {
    display: flex;
    gap: 30px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.detail-image-section {
    width: 55%;
    display: flex;
    align-items: stretch;
}

.detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.detail-image:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.detail-info-section {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

.product-specs {
    margin-bottom: 30px;
}

.product-specs h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-list li {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.specs-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #333;
    width: 150px;
    flex-shrink: 0;
}

.spec-value {
    color: #666;
}

/* 分割线样式 */
.detail-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
    margin: 0 40px;
}

/* 图片容器样式 */
.image-container {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 联系方式图标样式 */
.contact-icons {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 25px;
    justify-content: center;
}

.contact-icon-item {
    position: relative;
    display: inline-block;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 不同图标的背景颜色 */
.contact-icon-item.phone .contact-icon {
    background-color: #25D366;
}

.contact-icon-item.email .contact-icon {
    background-color: #EA4335;
}

.contact-icon-item.whatsapp .contact-icon {
    background-color: #075E54;
}

.contact-icon-item.facebook .contact-icon {
    background-color: #1877F2;
}

/* 图标悬浮效果 */
.contact-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 16px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}

.contact-icon-item:hover .contact-tooltip {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 10px);
}

/* 标签关键词样式 */
.tags-section {
    padding: 30px 40px;
    background-color: #ffffff;
    margin-bottom: 20px;
}

/* 板块头部样式 */
.section-header,
.tags-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.section-icon {
    margin-right: 10px;
    color: #007bff;
}

.section-header h3,
.tags-header h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
    flex-grow: 1;
}

.more-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #007bff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.more-btn:hover {
    color: #0056b3;
    transform: translateX(5px);
}

.more-btn span {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.more-btn:hover span {
    transform: translateX(3px);
}

/* 标签头部样式 */
.tags-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.tags-header h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
    flex-grow: 1;
}

/* 标签网格布局 */
.tags-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tag-row {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.tag-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 50px;
}

.tag-wrapper.left {
    justify-content: flex-start;
}

.tag-wrapper.right {
    justify-content: flex-end;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: 100%;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    border-radius: 8px;
    box-sizing: border-box;
}

/* 随机背景颜色 */
.tag-row:nth-child(1) .tag-wrapper:nth-child(1) .tag-item {
    background-color: #3498db;
}

.tag-row:nth-child(1) .tag-wrapper:nth-child(2) .tag-item {
    background-color: #e74c3c;
}

.tag-row:nth-child(2) .tag-wrapper:nth-child(1) .tag-item {
    background-color: #2ecc71;
}

.tag-row:nth-child(2) .tag-wrapper:nth-child(2) .tag-item {
    background-color: #f39c12;
}

.tag-row:nth-child(3) .tag-wrapper:nth-child(1) .tag-item {
    background-color: #9b59b6;
}

.tag-row:nth-child(3) .tag-wrapper:nth-child(2) .tag-item {
    background-color: #1abc9c;
}

.tag-row:nth-child(4) .tag-wrapper:nth-child(1) .tag-item {
    background-color: #e67e22;
}

.tag-row:nth-child(4) .tag-wrapper:nth-child(2) .tag-item {
    background-color: #34495e;
}

/* 标签展开动画效果 */
.tag-wrapper.left:hover .tag-item {
    transform: translateX(10px);
    width: auto;
    max-width: 300px;
    overflow: visible;
}

.tag-wrapper.right:hover .tag-item {
    transform: translateX(-10px);
    width: auto;
    max-width: 300px;
    overflow: visible;
}

/* 标签悬浮效果 */
.tag-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 左侧板块状态栏样式 */
.category-menu .section-header,
.sidebar-products .section-header {
    margin-bottom: 15px;
}

.category-menu ul {
    margin-top: 0;
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.category-menu li {
    margin-bottom: 0;
}

/* 只应用于列表项中的链接 */
.category-menu ul li a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    background-color: #f0f8ff;
    color: #3498db;
    border: 1px solid #e0f0ff;
}

/* 列表项链接的悬浮效果 */
.category-menu ul li a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #3498db;
    color: #ffffff;
}

.sidebar-products {
    margin-top: 30px;
}

.detail-info {
    padding: 40px;
}

.info-section {
    margin-bottom: 40px;
}

.info-section h2 {
    font-size: 24px;
    margin-bottom: 0px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.info-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-section img {
    width: 60%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.specs-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #333;
}

.specs-table tr:hover {
    background-color: #f5f5f5;
}

.application-list {
    list-style: none;
    padding: 0;
}

.application-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #666;
}

.application-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background-color: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}