/* ========== 产品详情扩展模块通用 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
}
html,body{
    width:100%;
    overflow-x:hidden;
}

.content img, .content iframe {
    width: 100%;
    max-width: 100% !important;
}

.detail-module {
    margin-top: 30px;
    margin-bottom: 50px;
}

/* 1. 教学品种模块 */
.module-title-wrap {
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(90deg, transparent, #fff5f5, transparent);
    padding: 12px 0;
}
.module-title {
    font-size: 28px;
    font-weight: bold;
    color: #e60012;
    margin: 0;
    position: relative;
    display: inline-block;
}
.module-title::before,
.module-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: #e60012;
}
.module-title::before { left: -60px; }
.module-title::after { right: -60px; }

.variety-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.variety-card {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    background: #fff;
}
.variety-card:hover {
    border-color: #e60012;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.15);
}
.variety-img-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.variety-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.variety-card:hover .variety-img {
    transform: scale(1.05);
}
.variety-name {
    padding: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #e60012;
    background: #fff9f9;
}

/* 2. 项目卖点模块 */
.module-title-sell {
    font-size: 36px;
    font-weight: 900;
    color: #e60012;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e60012;
    width: 100%;
}
.module-title-sell span {
    font-size: 32px;
}

.sell-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.sell-item {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 20px 20px 20px 80px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid #f5f5f5;
}
.sell-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 50px;
    background: linear-gradient(135deg, #ffcc00 0%, #f5a623 100%);
    color: #e60012;
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    line-height: 50px;
    border-radius: 10px 0 10px 0;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.sell-title {
    font-size: 20px;
    color: #e60012;
    margin: 0 0 8px 0;
    font-weight: bold;
}
.sell-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 3. 学习流程模块 */
.module-title-flow {
    font-size: 42px;
    font-weight: 900;
    color: #e60012;
    text-align: center;
    margin: 0 0 20px 0;
    letter-spacing: 2px;
}
.flow-main-img {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid #ffd700;
}
.flow-main-img img {
    width: 100%;
    height: auto;
    display: block;
}
.flow-step-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
/* 核心修改：取消垂直居中，改为顶部对齐 */
.flow-step-item {
    display: flex;
    gap: 15px;
    background: #f23434;
    border-radius: 12px;
    padding: 24px 20px;
    color: #fff;
    /* 取消clip-path斜切，如果你想要原图斜边我另外调整 */
    align-items: flex-start !important;
}
/* 六边形序号 */
.flow-step-num {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: #ffffff;
    color: #e60012;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    line-height: 56px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.flow-step-content {
    flex: 1;
}
.flow-step-title {
    font-size: 26px;
    margin: 4px 0 8px 0;
    font-weight: bold;
}
.flow-step-desc {
    font-size: 16px;
    margin: 0;
    opacity: 0.95;
    line-height: 1.6;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .module-title-flow {
        font-size: 32px;
    }
    .flow-step-item {
        padding: 20px 16px;
        gap: 12px;
    }
    .flow-step-num {
        width: 48px;
        height: 48px;
        line-height: 48px;
        font-size: 20px;
    }
    .flow-step-title {
        font-size: 22px;
    }
    .flow-step-desc {
        font-size: 15px;
    }
}
/* =========利润分析模块========== */
.profit-module {
    margin-top:30px;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
}
.profit-table-wrap {
    border:2px solid #e60012;
    border-radius:10px;
    overflow:hidden;
    margin-bottom:20px;
}
.profit-table {
    width:100%;
    border-collapse: collapse;
    table-layout: auto;
}
.profit-table thead tr {
    background: #ffc278;
}
.profit-table th,
.profit-table td {
    border:1px solid #e60012;
    padding:14px 10px;
    text-align:center;
    font-size:16px;
    line-height:1.6;
}
.profit-table th {
    color:#e60012;
    font-weight:bold;
    font-size:18px;
}
.profit-table tbody tr:nth-child(odd) {
    background:#fff9f5;
}
.profit-table tbody tr:nth-child(even) {
    background:#ffffff;
}

/* 底部文字大框 */
.profit-desc-box {
    border:2px solid #e60012;
    border-radius:10px;
    padding:30px 20px;
    text-align:center;
    background:#fffbf5;
    line-height:1.8;
    font-size:26px;
}
.profit-desc-box strong{
    color:#e60012;
    font-weight:bold;
    font-size:32px;
}

/* =========移动端适配========== */
@media (max-width:768px) {
    .profit-table th,
    .profit-table td {
        padding:10px 6px;
        font-size:12px;
    }
    .profit-table th {
        font-size:15px;
    }
    .profit-desc-box {
        padding:20px 12px;
        font-size:18px;
    }
    .profit-desc-box strong{
        font-size:26px;
    }
}

/* =========常用设备模块========== */
.equipment-module {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #fff5f5 0%, #fffdfd 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.equipment-module::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #e60012, #ff4d4d);
}

.equipment-title-wrap {
    text-align: center;
    margin-bottom: 18px;
}

.equipment-title-tag {
    display: inline-block;
    padding: 8px 22px;
    background: linear-gradient(135deg, #e60012, #ff4d4d);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.15);
}

.equipment-title-tag::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #e60012;
}

.equipment-content {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    padding-left: 10px;
}

.equipment-content p {
    margin: 0 0 10px 0;
}

.equipment-content ul {
    margin: 0;
    padding-left: 20px;
}

.equipment-content li {
    margin-bottom: 8px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .equipment-module {
        padding: 18px 15px;
    }

    .equipment-title-tag {
        font-size: 18px;
        padding: 7px 18px;
    }

    .equipment-content {
        font-size: 15px;
    }
}
/* =========售卖场景模块========== */
.scene-module {
    margin-top: 30px;
    width:100%;
    max-width:100%;
    box-sizing: border-box;
}
.scene-title {
    font-size: 36px;
    font-weight: 900;
    color: #e60012;
    text-align: center;
    margin:0 0 25px 0;
    letter-spacing:4px;
}
.scene-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap:16px;
}
.scene-item {
    width:100%;
    overflow:hidden;
    border-radius:10px;
}
.scene-item img {
    width:100%;
    height:100%;
    aspect-ratio:1 / 0.92;
    object-fit: cover;
    display:block;
    transition: transform 0.3s;
}
.scene-item:hover img {
    transform: scale(1.03);
}

/* =========移动端适配========== */
@media (max-width:768px) {
    .scene-title {
        font-size: 38px;
        margin-bottom:18px;
    }
    .scene-grid {
        gap:12px;
    }
}
/* =========搭配建议模块========== */

.match-module:has(.match-item) {
    display:block;
}
.match-module:not(:has(.match-item)) {
    display:none;
}


.match-module {
    margin-top: 30px;
    width:100%;
    max-width:100%;
    box-sizing: border-box;
}
.match-title {
    font-size: 36px;
    font-weight: 900;
    color: #e60012;
    text-align: center;
    margin:0 0 25px 0;
    letter-spacing:4px;
}
.match-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap:16px;
}
.match-item {
    width:100%;
    overflow:hidden;
}
.match-item a{
    display:block;
    text-decoration:none;
}
.match-img {
    width:100%;
    aspect-ratio: 1 / 0.82;
    overflow:hidden;
    border-radius: 6px 6px 0 0;
}
.match-img img {
    width:100%;
    height:100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.match-item:hover .match-img img {
    transform: scale(1.05);
}
.match-label {
    background: #ffcc90;
    text-align:center;
    font-size:24px;
    color:#e60012;
    font-weight:bold;
    padding:12px 0;
    border-radius:0 0 6px 6px;
}

/* =========移动端适配========== */
@media (max-width:768px) {
    .match-title {
        font-size: 38px;
        margin-bottom:18px;
    }
    .match-grid {
        gap:12px;
    }
    .match-label {
        font-size:18px;
        padding:9px 0;
    }
}

/* =========学员案例模块【上下布局】========== */
.case-module {
    margin-top:30px;
    background:#efc27e;
    padding:20px;
    border-radius:12px;
    box-sizing:border-box;
    width:100%;
    max-width:100%;
}
.case-wrap {
    background:#ffffff;
    padding:24px;
    border-radius:8px;
    margin-bottom:16px;
    text-align:center;
}
/* 顶部标题 */
.case-top-title {
    font-size:44px;
    font-weight:900;
    color:#e60012;
    margin:0 0 20px 0;
    letter-spacing:3px;
}
/* 案例文字区域 */
.case-text-box {
    font-size:18px;
    line-height:1.8;
    color:#333;
    text-align:justify;
    text-indent:2em;
}
.case-text-box strong {
    color:#e60012;
    font-weight:bold;
}
/* 底部图片两栏布局 */
.case-img-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}
.case-img-item {
    overflow:hidden;
    border-radius:8px;
}
.case-img-item img {
    width:100%;
    height:100%;
    aspect-ratio:16 / 9;
    object-fit:cover;
    display:block;
    transition:transform 0.3s;
}
.case-img-item:hover img {
    transform:scale(1.03);
}

/* =========移动端适配========== */
@media(max-width:768px){
    .case-top-title {
        font-size:30px;
    }
    .case-text-box {
        font-size:16px;
    }
    .case-img-grid {
        gap:12px;
    }
}

/* =========学员学习评价模块========== */
.review-module {
    margin-top:30px;
    background:#e60012;
    padding:20px;
    border-radius:12px;
    box-sizing:border-box;
    width:100%;
    max-width:100%;
}
.review-wrap {
    background:#ffffff;
    padding:24px;
    border-radius:8px;
    margin-bottom:16px;
    text-align:center;
}
.review-top-title {
    font-size:44px;
    font-weight:900;
    color:#e60012;
    margin:0 0 20px 0;
    letter-spacing:3px;
}
.review-text-box {
    font-size:18px;
    line-height:1.8;
    color:#333;
    text-align:justify;
    text-indent:2em;
}
.review-text-box strong {
    color:#e60012;
    font-weight:bold;
}
.review-img-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}
.review-img-item {
    overflow:hidden;
    border-radius:8px;
}
.review-img-item img {
    width:100%;
    height:100%;
    aspect-ratio:16 / 9;
    object-fit:cover;
    display:block;
    transition:transform 0.3s;
}
.review-img-item:hover img {
    transform:scale(1.03);
}

/* =========移动端适配========== */
@media(max-width:768px){
    .review-top-title {
        font-size:30px;
    }
    .review-text-box {
        font-size:16px;
    }
    .review-img-grid {
        gap:12px;
    }
}
.category-grid-al {
    margin-bottom: 20px;
}
.grid-item-al .item-img {
    height: 180px;
}