.banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-detail-page {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.detail-header {
    text-align: center;
}

.detail-header h1 {
    /* font-size: 2rem; */
    color: #940c11;
    margin: 40px 0 20px 0;
    /* 上边距40px，下边距20px */
}

.detail-meta {
    width: 85%;
    color: #666;
    font-size: 14px;
    justify-content: flex-end;
    margin-bottom: 20px;
    display: flex;
}

.detail-content,
.detail-content * {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px; */
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    background-color: transparent !important;
}

.detail-content p {
    text-indent: 2em !important;
    margin: 0 0 15px 0;
    padding-left: 0;
    /* 去掉可能存在的左侧 padding */
    text-indent: 0;
    /* 去掉旧缩进 */
    background-color: transparent;
}

.detail-content img {
    display: block;
    /* 让 img 独占一行 */
    margin: 0px auto;
    /* 上下 20px，左右 auto → 水平居中 */
    max-width: 100%;
    /* 响应式宽度 */
    height: auto;
    /* 保持比例 */
    background: none;
    /* 去掉可能的背景 */
    box-shadow: none;
    /* 去掉可能的外阴影 */
    float: none !important;
    /* 清除旧浮动 */
    padding: 0 !important;
    /* 清除旧内边距 */
}

.loading {
    text-align: center;
    padding: 50px;
    color: #666;
}

.loading i {
    margin-right: 10px;
}

/* 在 product-detail.css 中添加 */
.title-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.title-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(231, 76, 54, 0.1);
    border: 2px solid #e74c3c;
}

.title-text {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #666;
}

.product-image-container {
    position: relative;
    margin: 30px 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
}

.image-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.prev-btn,
.next-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.product-details {
    margin-top: 30px;
}

.section {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.section h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

.section p {
    margin: 0;
    line-height: 1.6;
    color: #666;
}

/* 图标 */

.product-icons {
    display: flex;
    justify-content: center;
    gap: 200px;
    padding: 30px 0;
    background: #f7f7f7;
}

/* 基础圆圈 */
.icon-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 0;
    transition: transform .2s;
}

.circle {
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s, transform .2s;
}

.circle img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.icon-item p {
    margin: 8px 0 0;
    font-size: 24px;
    color: #333;
}

.icon-item.active p {
    color: #940c11;
}

/* 点击/聚焦瞬间效果 */
.icon-item:active .circle,
.icon-item:focus .circle {
    background: #940c11;
    /* 圆圈变主色 */
    transform: scale(1.08);
    /* 轻微放大 */
}

.icon-item:active p,
.icon-item:focus p {
    color: #940c11;
}


/* 移动端自适应样式 */

/* 平板设备 (768px 及以下) */
@media (max-width: 768px) {
    .banner {
        height: 300px;
    }

    .products-detail-page {
        padding: 30px 0;
    }

    .detail-header {
        text-align: center;
        padding: 0 15px;
    }

    .detail-header h1 {
        font-size: 1.8rem;
        margin: 30px 0 15px 0;
    }

    .detail-meta {
        width: 100%;
        font-size: 13px;
        padding: 0 15px;
        margin-bottom: 15px;
        justify-content: center;
    }

    .detail-content,
    .detail-content * {
        font-size: 15px;
        line-height: 1.7;
        padding: 0 15px;
        max-width: 100%;
    }

    .detail-content p {
        text-indent: 2em !important;
        margin: 0 0 12px 0;
    }

    .detail-content img {
        margin: 15px auto;
    }

    .loading {
        padding: 30px;
        font-size: 14px;
    }

    .title-container {
        flex-direction: column;
        gap: 8px;
        font-size: 20px;
        padding: 0 15px;
    }

    .title-icon {
        font-size: 20px;
        width: 35px;
        height: 35px;
    }

    .title-text {
        font-size: 20px;
    }

    .product-description {
        margin-bottom: 20px;
        padding: 0 15px;
        font-size: 15px;
    }

    .product-image-container {
        margin: 20px 0;
        border-radius: 6px;
    }

    .image-controls {
        padding: 0 15px;
    }

    .prev-btn,
    .next-btn {
        width: 35px;
        height: 35px;
    }

    .product-details {
        margin-top: 20px;
        padding: 0 15px;
    }

    .section {
        margin-bottom: 15px;
        padding: 15px;
    }

    .section h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .section p {
        font-size: 14px;
    }

    .product-icons {
        gap: 100px;
        padding: 20px 0;
    }

    .icon-item {
        align-items: center;
    }

    .circle {
        width: 70px;
        height: 70px;
    }

    .circle img {
        width: 30px;
        height: 30px;
    }

    .icon-item p {
        font-size: 18px;
        margin: 6px 0 0;
    }
}

/* 小屏幕手机 (480px 及以下) */
@media (max-width: 480px) {
    .banner {
        height: 250px;
    }

    .products-detail-page {
        padding: 20px 0;
    }

    .detail-header {
        padding: 0 10px;
    }

    .detail-header h1 {
        font-size: 1.5rem;
        margin: 20px 0 10px 0;
    }

    .detail-meta {
        font-size: 12px;
        padding: 0 10px;
        margin-bottom: 10px;
    }

    .detail-content,
    .detail-content * {
        font-size: 14px;
        line-height: 1.6;
        padding: 0 10px;
    }

    .detail-content p {
        text-indent: 2em !important;
        margin: 0 0 10px 0;
    }

    .detail-content img {
        margin: 10px auto;
    }

    .loading {
        padding: 20px;
        font-size: 13px;
    }

    .loading i {
        margin-right: 5px;
    }

    .title-container {
        font-size: 18px;
        padding: 0 10px;
    }

    .title-icon {
        font-size: 18px;
        width: 30px;
        height: 30px;
    }

    .title-text {
        font-size: 18px;
    }

    .product-description {
        margin-bottom: 15px;
        padding: 0 10px;
        font-size: 14px;
    }

    .product-image-container {
        margin: 15px 0;
        border-radius: 4px;
    }

    .image-controls {
        padding: 0 10px;
    }

    .prev-btn,
    .next-btn {
        width: 30px;
        height: 30px;
    }

    .product-details {
        margin-top: 15px;
        padding: 0 10px;
    }

    .section {
        margin-bottom: 12px;
        padding: 12px;
    }

    .section h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .section p {
        font-size: 13px;
    }

    .product-icons {
        gap: 60px;
        padding: 15px 0;
    }

    .circle {
        width: 60px;
        height: 60px;
    }

    .circle img {
        width: 25px;
        height: 25px;
    }

    .icon-item p {
        font-size: 16px;
        margin: 5px 0 0;
    }
}

/* 超小屏幕手机 (320px 及以下) */
@media (max-width: 320px) {
    .banner {
        height: 200px;
    }

    .detail-header h1 {
        font-size: 1.3rem;
    }

    .detail-meta {
        font-size: 11px;
    }

    .detail-content,
    .detail-content * {
        font-size: 13px;
        line-height: 1.5;
    }

    .title-container {
        font-size: 16px;
    }

    .title-icon {
        font-size: 16px;
        width: 25px;
        height: 25px;
    }

    .title-text {
        font-size: 16px;
    }

    .product-description {
        font-size: 13px;
    }

    .section h3 {
        font-size: 14px;
    }

    .section p {
        font-size: 12px;
    }

    .product-icons {
        gap: 40px;
    }

    .circle {
        width: 50px;
        height: 50px;
    }

    .circle img {
        width: 20px;
        height: 20px;
    }

    .icon-item p {
        font-size: 14px;
    }
}

/* 通用移动端优化 */
@media (max-width: 768px) {

    /* 优化触摸体验 */
    .icon-item,
    .prev-btn,
    .next-btn {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }

    /* 优化字体渲染 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    /* 优化图片加载 */
    .banner-img,
    .detail-content img,
    .product-image,
    .circle img {
        image-rendering: -webkit-optimize-contrast;
    }

    /* 防止文本调整大小 */
    html {
        -webkit-text-size-adjust: 100%;
    }

    /* 优化容器宽度 */
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    /* 针对超长内容的优化 */
    .detail-content {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .detail-content * {
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* 确保表格在移动端可滚动 */
    .detail-content table {
        display: block;
        overflow-x: auto;
        width: 100%;
    }
}

/* 移动端特殊交互优化 */
@media (max-width: 768px) {

    /* 为图标添加触摸反馈 */
    .icon-item:active .circle {
        background: #940c11;
        transform: scale(1.1);
    }

    .icon-item:active p {
        color: #940c11;
    }

    /* 优化按钮触摸区域 */
    .prev-btn,
    .next-btn {
        min-width: 44px;
        min-height: 44px;
        /* 符合移动端触摸标准 */
    }

}