/* ==========================================================================
   AntCMS web_1 主题 - 方案详情页专属样式 (solution-detail.css)
   以 H:\gemini\web_1\solution-detail.html 为参照物，解耦自包含独立维护
   ========================================================================== */

/* 页面通用布局容器 */
.c {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}

/* 面包屑导航 */
.bc {
    padding: 18px 0;
    font-size: 13px;
    color: #667085;
}
.bc a {
    color: #475467;
    text-decoration: none;
    transition: color .15s;
}
.bc a:hover {
    color: #0f62fe;
}
.bc .crumb-sep {
    margin: 0 8px;
    color: #98a2b3;
}
.bc .crumb-cur {
    color: #101828;
    font-weight: 600;
}

/* 顶部大幅 Hero 视差与要点展示 */
.hero {
    padding: 20px 0 52px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    border-bottom: 1px solid #eef2f6;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 40px;
    align-items: center;
}
.hero small,
.sh small {
    display: block;
    color: #0f62fe;
    font-weight: 900;
    letter-spacing: 1.15px;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.hero h1 {
    font-size: 44px;
    line-height: 1.15;
    margin: 8px 0 14px;
    color: #101828;
    font-weight: 800;
}
.hero p {
    max-width: 760px;
    color: #667085;
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.68;
}
.hero-points {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.hero-points span {
    padding: 8px 14px;
    border: 1px solid #d7e3ff;
    background: #fff;
    color: #2458b8;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(15, 98, 254, 0.05);
}
.hero-visual {
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    background: linear-gradient(145deg, #dfe8f7, #bfcce0);
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
}
.hero-visual:before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 18%;
    height: 22%;
    border-radius: 16px;
    background: #7f8d9f;
}
.hero-visual:after {
    content: "";
    position: absolute;
    left: 16%;
    top: 24%;
    width: 68%;
    height: 42%;
    border-radius: 18px;
    background: linear-gradient(145deg, #f3f6fa, #8d9baa);
}
.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
}

/* 章节通用 */
.sec {
    padding: 68px 0;
}
.soft {
    background: #f7f9fc;
}
.sh {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.sh h2 {
    font-size: 32px;
    line-height: 1.2;
    margin: 4px 0 0;
    color: #101828;
    font-weight: 800;
}
.sh p {
    max-width: 650px;
    color: #667085;
    margin: 0;
    font-size: 14.5px;
}

/* 适用形态卡片 4 列网格 */
.shape-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.shape {
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.02);
}
.shape b {
    display: block;
    color: #0f62fe;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}
.shape strong {
    display: block;
    font-size: 16px;
    color: #101828;
    margin-bottom: 6px;
}
.shape span {
    font-size: 13px;
    color: #667085;
    line-height: 1.5;
    display: block;
}

/* 包装目标卡片 4 列网格 */
.goal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.goal {
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    padding: 22px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.02);
}
.goal i {
    font-style: normal;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #eef4ff;
    color: #0f62fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 12px;
}
.goal h3 {
    font-size: 17px;
    margin: 0 0 6px;
    color: #101828;
    font-weight: 700;
}
.goal p {
    font-size: 13px;
    color: #667085;
    margin: 0;
    line-height: 1.55;
}

/* 包装难点卡片 3 列网格 */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.problem {
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    padding: 24px;
    background: #fff;
    border-left: 4px solid #f79009;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.02);
}
.problem strong {
    display: block;
    font-size: 17px;
    color: #101828;
    margin-bottom: 8px;
    font-weight: 800;
}
.problem p {
    font-size: 13.5px;
    color: #667085;
    margin: 0;
    line-height: 1.6;
}

/* 6 步典型包装流程 Flow */
.flow {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    align-items: stretch;
}
.step {
    position: relative;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #fff;
    padding: 18px 14px;
    min-height: 122px;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.02);
}
.step b {
    display: block;
    color: #0f62fe;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 6px;
}
.step strong {
    display: block;
    font-size: 15px;
    color: #101828;
    margin-bottom: 4px;
}
.step span {
    font-size: 12px;
    color: #667085;
    line-height: 1.45;
    display: block;
}
.step:not(:last-child):after {
    content: "→";
    position: absolute;
    right: -13px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 18px;
    font-weight: bold;
    z-index: 2;
}

/* 方案组合卡片 3 列网格 */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.plan {
    border: 1px solid #e4e7ec;
    border-radius: 20px;
    background: #fff;
    padding: 26px;
    position: relative;
    box-shadow: 0 4px 18px rgba(16, 24, 40, 0.03);
    display: flex;
    flex-direction: column;
}
.plan.featured {
    border-color: #70a1ff;
    box-shadow: 0 14px 34px rgba(15, 98, 254, 0.12);
}
.plan-tag {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #0f62fe;
    font-size: 11px;
    font-weight: 900;
    align-self: flex-start;
}
.plan.featured .plan-tag {
    background: #0f62fe;
    color: #fff;
}
.plan h3 {
    font-size: 22px;
    margin: 12px 0 8px;
    color: #101828;
    font-weight: 800;
}
.plan > p {
    font-size: 13.5px;
    color: #667085;
    margin: 0 0 18px;
    line-height: 1.55;
}
.plan ul {
    margin: 0 0 18px;
    padding-left: 20px;
    color: #475467;
    font-size: 13.5px;
    flex: 1;
}
.plan li {
    margin: 8px 0;
}
.plan .ideal {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #eef2f6;
    font-size: 12.5px;
    color: #667085;
    line-height: 1.5;
}
.plan .ideal strong {
    color: #101828;
}

/* 方案对比表格 */
.compare {
    overflow-x: auto;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(16, 24, 40, 0.03);
}
.compare table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}
.compare th,
.compare td {
    padding: 15px 18px;
    border-bottom: 1px solid #eef2f6;
    text-align: left;
    font-size: 13.5px;
}
.compare th {
    background: #f8fafc;
    color: #344054;
    font-weight: 700;
}
.compare tr:last-child td,
.compare tr:last-child th {
    border-bottom: 0;
}

/* 产线布局衔接 Layout */
.layout-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 30px;
    align-items: center;
}
.layout-visual {
    min-height: 340px;
    border: 1px solid #e4e7ec;
    border-radius: 20px;
    background: linear-gradient(145deg, #eef2f6, #c9d2dd);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.layout-visual:before {
    content: "进瓶  →  灌装  →  上盖  →  旋盖  →  贴标  →  出料";
    padding: 18px 24px;
    border-radius: 16px;
    background: #fff;
    color: #1e293b;
    font-weight: 800;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.1);
    border: 1px solid #cbd5e1;
}
.layout-list {
    display: grid;
    gap: 14px;
}
.layout-item {
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    padding: 18px 20px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.02);
}
.layout-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    color: #101828;
    font-weight: 700;
}
.layout-item span {
    font-size: 13px;
    color: #667085;
    line-height: 1.55;
    display: block;
}

/* 样品效果展示 3 列网格 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.image-card {
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(16, 24, 40, 0.03);
}
.sample {
    aspect-ratio: 1 / 1;
    background: linear-gradient(145deg, #edf1f5, #c9d1da);
    position: relative;
}
.sample:before {
    content: "";
    position: absolute;
    left: 37%;
    top: 17%;
    width: 26%;
    height: 66%;
    border-radius: 18px;
    background: linear-gradient(90deg, #edf2f6, #a8b4c1 50%, #f4f7fa);
}
.sample:after {
    content: "SAMPLE";
    position: absolute;
    left: 34%;
    top: 44%;
    width: 32%;
    height: 18%;
    background: #fff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    color: #667085;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.image-card .body {
    padding: 16px;
}
.image-card h3 {
    font-size: 16px;
    margin: 0 0 6px;
    color: #101828;
    font-weight: 700;
}
.image-card p {
    font-size: 12.5px;
    color: #667085;
    margin: 0;
}

/* 关联产品与案例视频 3 列网格 */
.product-grid,
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.item {
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}
.product-pic {
    aspect-ratio: 1 / 1;
    background: linear-gradient(145deg, #edf1f5, #c9d1da);
    position: relative;
    overflow: hidden;
}
.product-pic:before {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 15%;
    height: 36%;
    border-radius: 14px;
    background: linear-gradient(145deg, #d5dce5, #7f8b99);
}
.product-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
    transition: transform .3s ease;
}
.item:hover .product-pic img {
    transform: scale(1.04);
}

.video-thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    position: relative;
    overflow: hidden;
}
.video-thumb:before {
    content: "▶";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background .2s, transform .2s;
    z-index: 3;
}
.item:hover .video-thumb:before {
    background: #0f62fe;
    transform: translate(-50%, -50%) scale(1.1);
}
.video-thumb img,
.video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.item .body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.item small {
    color: #0f62fe;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: .5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}
.item h3 {
    font-size: 16.5px;
    line-height: 1.45;
    margin: 4px 0 8px;
    color: #101828;
    font-weight: 700;
}
.item p {
    font-size: 12.5px;
    color: #667085;
    margin: 0;
    line-height: 1.55;
    margin-top: auto;
}

/* 常见问题 FAQ */
.faq details {
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    padding: 16px 18px;
    background: #fff;
    margin-bottom: 10px;
}
.faq summary {
    font-weight: 800;
    color: #101828;
    cursor: pointer;
    font-size: 15px;
}
.faq p {
    font-size: 13.5px;
    color: #667085;
    margin: 10px 0 0;
    line-height: 1.65;
}

/* 底部咨询横幅 CTA Band */
.band {
    margin: 0 auto 68px;
    background: linear-gradient(135deg, #0f62fe, #1649a7);
    color: #fff;
    border-radius: 24px;
    padding: 40px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 16px 36px rgba(15, 98, 254, 0.22);
}
.band h2 {
    font-size: 28px;
    margin: 0 0 8px;
    font-weight: 800;
}
.band p {
    margin: 0;
    color: #dbe7ff;
    font-size: 15px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.btn-light {
    background: #fff;
    color: #101828;
}
.btn-light:hover {
    background: #f8fbff;
    color: #0f62fe;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 富文本内容扩展容器 - 居中对齐 */
.solution-prose {
    margin: 36px auto;
    padding: 32px;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(16, 24, 40, 0.03);
    text-align: center;
}
.solution-prose img {
    max-width: 100%;
    border-radius: 12px;
    height: auto;
    display: block;
    margin: 12px auto;
}
.solution-prose p {
    margin: 0 auto 16px;
    text-align: center;
}

/* 响应式断点适配 */
@media(max-width: 1000px) {
    .hero-grid,
    .layout-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .shape-grid,
    .goal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .flow {
        grid-template-columns: repeat(3, 1fr);
    }
    .step:nth-child(3):after {
        display: none;
    }
    .plan-grid {
        grid-template-columns: 1fr;
    }
    .product-grid,
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 720px) {
    .c {
        width: calc(100% - 28px);
    }
    .hero h1 {
        font-size: 30px;
    }
    .sec {
        padding: 48px 0;
    }
    .sh {
        align-items: flex-start;
        flex-direction: column;
    }
    .sh h2 {
        font-size: 26px;
    }
    .shape-grid,
    .goal-grid,
    .problem-grid,
    .flow,
    .image-grid,
    .product-grid,
    .video-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .step:nth-child(odd):after {
        display: block;
    }
    .step:nth-child(even):after {
        display: none;
    }
    .band {
        margin-bottom: 48px;
        padding: 26px 20px;
        align-items: flex-start;
        flex-direction: column;
    }
    .band h2 {
        font-size: 22px;
    }
}
