﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.product-view {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    color: #000000;
}

.product-view-top {
    width: 100%;
    margin: 40px 0;
}

/* ===== 两栏布局：使用 table 兼容 IE8 ===== */
.product-view-row {
    display: table;
    width: 100%;
    table-layout: fixed; /* 固定列宽，避免内容撑开 */
}

.product-view-text {
    display: table-cell;
    width: 58%;
    padding-right: 30px;  /* 替代 gap:30px */
    padding-top: 40px;    /* 替代 margin-top:40px */
    vertical-align: top;
    box-sizing: border-box;
}

.product-view-img-box {
    display: table-cell;
    width: 42%;
    vertical-align: top;
    box-sizing: border-box;
}

/* ===== 返回链接（不用 flex） ===== */
.product-view-back {
    display: block;
    color: #666;
    text-decoration: none;
    margin-bottom: 30px;
    font-size: 18px;
}
.product-view-back i {
    color: #015bac;
    font-size: 22px;
    margin-right: 12px;  /* 替代 gap:12px */
    vertical-align: middle;
}
.product-view-back span {
    vertical-align: middle;
}

.product-view-title {
    font-size: 32px;
    color: #000028;
    margin: 0 0 20px 0;
    line-height: 1.4;
    font-weight: normal;
}

.product-view-desc-top {
    font-size: 16px;
    line-height: 1.7;
    color: #000000;
    margin: 0;
}

/* ===== 轮播容器 ===== */
.product-view-img-frame {
    border: 2px solid #1e2188;
    border-radius: 12px;
    padding: 16px;
    position: relative;
    box-sizing: border-box;
    background: #fff;
    /* 1:1 比例兼容 IE */
    height: 0;
    padding-bottom: 96.7%;
    overflow: hidden;
}

.product-view-img-inner {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    bottom: 16px;
    overflow: hidden;
    border-radius: 8px;
}

/* ===== 轮播条（不用 flex，用 inline-block） ===== */
.product-view-wrap {
    white-space: nowrap;
    font-size: 0;
    width: 100%;
    height: 100%;
    position: relative;
    left: 0;
    transition: none; /* IE 不支持 transform，由 JS 控制 left */
}

.product-view-slide {
    display: inline-block;
    width: 100%;
    height: 100%;
    vertical-align: top;
    white-space: normal;
    font-size: 0;
}

.product-view-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== 箭头 ===== */
.product-view-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    text-align: center;
    line-height: 42px;
    font-size: 18px;
    color: #1e2188;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.product-view-prev { left: 6px; }
.product-view-next { right: 6px; }

/* ===== 指示点 ===== */
.product-view-dots {
    text-align: center;
    margin-top: 16px;
}
.product-view-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dddddd;
    margin: 0 6px;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
}
.product-view-dot.active {
    background: #1e2188;
}

/* ===== 其他文字样式 ===== */
.product-view-section-title {
    display: inline-block;
    padding: 12px 400px 12px 50px;
    background: linear-gradient(90deg, #1e2188, #36bdea, #ffffff);
    color: #ffffff;
    font-size: 22px;
    border-top-left-radius: 32px;
    border-bottom-left-radius: 0px;
    margin-bottom: 24px;
    font-weight: normal;
}

.product-view-content h4 {
    font-size: 20px;
    margin: 0 0 16px 0;
    color: #000000;
    font-weight: normal;
}
.product-view-content p {
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 12px 0;
    color: #000000;
}

.product-view-arrow.hidden,
.product-view-dots.hidden {
    display: none;
}

/* ===== 响应式 ===== */
@media screen and (max-width: 1024px) {
    .product-view-row {
        display: block;
        width: auto;
    }
    .product-view-text,
    .product-view-img-box {
        display: block;
        width: 100% !important;
        padding-right: 0;
        padding-top: 0;
    }
    .product-view-text {
        margin-top: 40px;
        margin-right: 0;
    }
    .product-view-img-box {
        width: 70% !important;
        margin: 0 auto;
    }
    .product-view-title {
        font-size: 28px;
    }
}

@media screen and (max-width: 640px) {
    .product-view {
        padding: 0 12px;
    }
    .product-view-arrow {
        display: none;
    }
    .product-view-img-box {
        width: 90% !important;
    }
    .product-view-title {
        font-size: 24px;
    }
    .product-view-section-title {
        font-size: 16px;
        padding: 10px 24px;
    }
    .product-view-back {
        font-size: 16px;
    }
    .product-view-back i {
        margin-right: 8px;
    }
    .product-view-text {
        margin-right: 0;
    }
}

/* ===== 通用 ===== */


@media screen and (max-width: 640px) {
  .product-view-content {
    position: relative;
    overflow: hidden; /* 配合伪元素定位 */
  }

  .product-view-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    white-space: nowrap;
  }

  /* 左侧滚动提示阴影 */
  .product-view-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, rgba(0,0,0,0.08), transparent);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
  }

  /* 当表格可以向左滚动时显示阴影 */
  .product-view-content table:not([style*="margin-left: 0"])::before {
    /* 但纯CSS无法检测滚动位置，需要用JS，所以用下面替代方案 */
  }
}
img {
    max-width: 100% !important;
    height: auto;
}

table tr:nth-child(1) { background: #ffffff; }
table tr:nth-child(2) { background: #ffffff; }
table {
    border-collapse: separate;
    margin: 0px 0px 10px 0px;
}
table td {
    border-bottom: 1px solid #cccccc;
    padding: 5px 5px 5px 10px;
    border-right: 1px solid #cccccc;
}
table tr:first-child td {
    border-top: 1px solid #cccccc;
}
table tr td:first-child {
    border-left: 1px solid #cccccc;
}
table tr:nth-child(odd) { background: #ffffff; }
table tr:nth-child(even) { color: #333333; }