/* =========================
   解决方案页面独立样式
   文件：cases/solutions.cases
   说明：复用 style.cases 的全局变量、页眉、页脚、按钮、容器
   ========================= */

/* 当前页面导航高亮 */
.nav-menu a.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-menu a.active::after {
    width: 100%;
}

/* =========================
   解决方案首屏：背景图片版
   ========================= */
.solutions-page-hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    padding: 88px 0 76px;
    overflow: hidden;
    background-image: linear-gradient(
            90deg,
            rgba(247, 250, 255, 0.98) 0%,
            rgba(247, 250, 255, 0.88) 34%,
            rgba(247, 250, 255, 0.42) 58%,
            rgba(247, 250, 255, 0.06) 100%
    ),
    url("../images/solutions-hero.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.solutions-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 16%, rgba(21, 94, 239, 0.12), transparent 34%),
    radial-gradient(circle at 34% 76%, rgba(0, 166, 214, 0.10), transparent 38%);
    pointer-events: none;
}

.solutions-page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(21, 94, 239, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 94, 239, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.50) 0%,
            rgba(0, 0, 0, 0.28) 42%,
            transparent 74%
    );
    pointer-events: none;
}

.solutions-page-hero-inner {
    position: relative;
    z-index: 1;
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.03fr 0.82fr;
    align-content: center;
    gap: 22px;
}

.solutions-page-copy,
.solutions-page-visual {
    grid-column: 1;
    width: min(760px, 100%);
}

.solutions-page-copy {
    padding: 30px 32px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 44px rgba(16, 32, 51, 0.08);
    backdrop-filter: blur(14px);
}

.page-badge {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid rgba(21, 94, 239, 0.16);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 8px 20px rgba(21, 94, 239, 0.08);
}

.solutions-page-copy h1 {
    max-width: 720px;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.08;
    letter-spacing: -1.6px;
    margin-bottom: 22px;
    color: #081A33;
}

.solutions-page-copy p {
    max-width: 700px;
    color: #405066;
    font-size: 18px;
}

.solutions-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.solutions-page-visual {
    position: relative;
    padding: 26px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 44px rgba(16, 32, 51, 0.08);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.solutions-page-visual::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(21, 94, 239, 0.10);
}

.solutions-visual-title {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 800;
}

.solutions-visual-stack {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    gap: 14px;
    flex-wrap: nowrap;
}

.solutions-layer {
    flex: 0 0 auto;
    width: fit-content;
    min-height: 82px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(221, 230, 242, 0.92);
    box-shadow: 0 8px 20px rgba(16, 32, 51, 0.06);
}

.solutions-layer span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-sub);
    font-size: 14px;
    white-space: nowrap;
}

.solutions-layer strong {
    display: block;
    color: var(--primary-dark);
    font-size: 24px;
    line-height: 1.1;
    white-space: nowrap;
}

.layer-management {
    border-left: 5px solid var(--primary);
}

.layer-execution {
    border-left: 5px solid var(--secondary);
}

.layer-data {
    border-left: 5px solid #7CFFCB;
}

/* =========================
   通用标题
   ========================= */
.section-head {
    max-width: 820px;
    margin-bottom: 42px;
}

.section-head-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 13px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(21, 94, 239, 0.08);
    border: 1px solid rgba(21, 94, 239, 0.14);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-title {
    color: var(--text-main);
    font-size: clamp(30px, 3.2vw, 46px);
    line-height: 1.18;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
}

.section-desc {
    color: var(--text-sub);
    font-size: 17px;
    line-height: 1.8;
}

.section-head-center .section-desc {
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
}

/* =========================
   行业贴图板块
   ========================= */
.industry-board-section {
    position: relative;
    padding: 96px 0 104px;
    background: #fff;
    overflow: hidden;
}

.industry-board-section::before {
    content: "";
    position: absolute;
    right: -180px;
    top: 80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(21, 94, 239, 0.06);
    pointer-events: none;
}

.industry-board-section::after {
    content: "";
    position: absolute;
    left: -160px;
    bottom: 40px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(0, 166, 214, 0.06);
    pointer-events: none;
}

.industry-card-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.industry-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 392px;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(221, 230, 242, 0.94);
    box-shadow: 0 16px 38px rgba(16, 32, 51, 0.08);
    text-decoration: none;
    transition: transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.industry-card:hover {
    transform: translateY(-9px);
    border-color: rgba(21, 94, 239, 0.30);
    box-shadow: 0 26px 58px rgba(16, 32, 51, 0.14);
}

.industry-card-image {
    position: relative;
    min-height: 178px;
    overflow: hidden;
    background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.38), transparent 32%),
    linear-gradient(135deg, #EAF3FF 0%, #DDEBFF 48%, #F7FAFF 100%);
}

.industry-card-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(21, 94, 239, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 94, 239, 0.065) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.9;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.industry-card-image::after {
    content: "";
    position: absolute;
    right: -54px;
    top: -54px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(21, 94, 239, 0.12);
    transition: transform 0.35s ease;
}

.industry-card:hover .industry-card-image::before {
    transform: scale(1.08);
    opacity: 0.55;
}

.industry-card:hover .industry-card-image::after {
    transform: scale(1.18);
}

.industry-card-image img {
    width: 100%;
    height: 100%;
    min-height: 178px;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.industry-card:hover .industry-card-image img {
    transform: scale(1.08);
    filter: saturate(1.08) contrast(1.04);
}

/* 不同行业图片框的轻微底色差异 */
.image-electronics {
    background: linear-gradient(135deg, #EAF3FF, #DFF7FF);
}

.image-auto-parts {
    background: linear-gradient(135deg, #EAF3FF, #E6EEFF);
}

.image-machining {
    background: linear-gradient(135deg, #EEF4FF, #EAF9FF);
}

.image-packaging {
    background: linear-gradient(135deg, #F4F8FF, #EAF3FF);
}

.image-equipment {
    background: linear-gradient(135deg, #EDF4FF, #F5FAFF);
}

.image-mold {
    background: linear-gradient(135deg, #EAF7FF, #F2F7FF);
}

.image-wire {
    background: linear-gradient(135deg, #EEF8FF, #EAF3FF);
}

.image-trade {
    background: linear-gradient(135deg, #F7FAFF, #EAF3FF);
}

.industry-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.industry-card-body span {
    width: fit-content;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(21, 94, 239, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.industry-card-body h3 {
    color: var(--primary-dark);
    font-size: 22px;
    margin-bottom: 10px;
}

.industry-card-body p {
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.industry-card-body strong {
    margin-top: auto;
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
    transition: transform 0.25s ease;
}

.industry-card:hover .industry-card-body strong {
    transform: translateX(5px);
}

/* =========================
   行业详情
   ========================= */
.industry-detail-section {
    padding: 96px 0 104px;
    background: var(--bg-main);
}

.industry-detail-list {
    display: grid;
    gap: 22px;
}

.industry-detail-card {
    scroll-margin-top: calc(var(--header-height) + 28px);
    position: relative;
    display: grid;
    grid-template-columns: 80px 1fr 1.05fr;
    gap: 28px;
    align-items: stretch;
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(221, 230, 242, 0.94);
    box-shadow: 0 14px 34px rgba(16, 32, 51, 0.07);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.industry-detail-card:hover {
    transform: translateY(-5px);
    border-color: rgba(21, 94, 239, 0.28);
    box-shadow: 0 24px 52px rgba(16, 32, 51, 0.12);
}

.industry-detail-index {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(21, 94, 239, 0.24);
}

.industry-detail-content h3 {
    color: var(--primary-dark);
    font-size: 25px;
    margin-bottom: 12px;
}

.industry-detail-content p {
    color: var(--text-sub);
    font-size: 15px;
    line-height: 1.76;
    margin-bottom: 16px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(21, 94, 239, 0.08);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
}

.industry-detail-solution {
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.96), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(221, 230, 242, 0.92);
}

.industry-detail-solution strong {
    display: block;
    margin-bottom: 14px;
    color: var(--primary-dark);
    font-size: 18px;
}

.industry-detail-solution ul {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.industry-detail-solution li {
    position: relative;
    padding-left: 20px;
    color: #43536A;
    font-size: 14px;
    line-height: 1.65;
}

.industry-detail-solution li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.08);
}

/* =========================
   业务场景
   ========================= */
.scenario-section {
    position: relative;
    padding: 96px 0 104px;
    background: #fff;
    overflow: hidden;
}

.scenario-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(21, 94, 239, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 94, 239, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}

.scenario-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.scenario-card {
    position: relative;
    min-height: 260px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(221, 230, 242, 0.94);
    box-shadow: 0 14px 34px rgba(16, 32, 51, 0.07);
    overflow: hidden;
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.scenario-card::before {
    content: "";
    position: absolute;
    right: -70px;
    top: -70px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(21, 94, 239, 0.08);
    transition: transform 0.26s ease;
}

.scenario-card:hover {
    transform: translateY(-8px);
    border-color: rgba(21, 94, 239, 0.28);
    box-shadow: 0 24px 52px rgba(16, 32, 51, 0.12);
}

.scenario-card:hover::before {
    transform: scale(1.16);
}

.scenario-icon {
    position: relative;
    z-index: 1;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(21, 94, 239, 0.24);
}

.scenario-card h3,
.scenario-card p {
    position: relative;
    z-index: 1;
}

.scenario-card h3 {
    color: var(--primary-dark);
    font-size: 22px;
    margin-bottom: 12px;
}

.scenario-card p {
    color: var(--text-sub);
    font-size: 15px;
    line-height: 1.76;
}

/* =========================
   建设路径
   ========================= */
.roadmap-section {
    padding: 96px 0 104px;
    background: var(--bg-main);
}

.roadmap-inner {
    display: grid;
    grid-template-columns: 0.86fr 1.14fr;
    align-items: center;
    gap: 54px;
}

.roadmap-copy h2 {
    color: var(--text-main);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.2;
    letter-spacing: -0.6px;
    margin-bottom: 16px;
}

.roadmap-copy p {
    color: var(--text-sub);
    font-size: 17px;
    line-height: 1.82;
}

.roadmap-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.roadmap-step {
    min-height: 190px;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(221, 230, 242, 0.94);
    box-shadow: 0 14px 34px rgba(16, 32, 51, 0.07);
}

.roadmap-step span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(21, 94, 239, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.roadmap-step strong {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 20px;
}

.roadmap-step p {
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.68;
}

/* =========================
   CTA
   ========================= */
.solutions-cta-section {
    padding: 78px 0;
    background: linear-gradient(135deg, #0B3A91, #155EEF);
    color: #fff;
}

.solutions-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.solutions-cta-inner h2 {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.22;
    margin-bottom: 10px;
}

.solutions-cta-inner p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
    line-height: 1.78;
}

.solutions-cta-section .btn-primary {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
    white-space: nowrap;
}

/* =========================
   响应式
   ========================= */
@media (max-width: 1180px) {
    .solutions-hero-inner,
    .roadmap-inner {
        grid-template-columns: 1fr;
    }

    .solutions-hero-copy {
        max-width: 860px;
    }

    .industry-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .industry-detail-card {
        grid-template-columns: 70px 1fr;
    }

    .industry-detail-solution {
        grid-column: 2;
    }
}

@media (max-width: 980px) {
    .industry-card-grid,
    .scenario-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .solutions-hero {
        min-height: auto;
        padding: 66px 0 58px;
    }

    .solutions-hero-inner {
        min-height: auto;
        gap: 36px;
    }

    .solutions-hero-copy h1 {
        letter-spacing: -0.8px;
    }

    .solutions-hero-copy p {
        font-size: 16px;
    }

    .solutions-hero-actions {
        flex-direction: column;
    }

    .solutions-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .solutions-hero-visual {
        padding: 24px;
        border-radius: 26px;
    }

    .industry-board-section,
    .industry-detail-section,
    .scenario-section,
    .roadmap-section {
        padding: 68px 0 76px;
    }

    .industry-card-grid,
    .scenario-grid,
    .roadmap-steps {
        grid-template-columns: 1fr;
    }

    .industry-card {
        min-height: auto;
        border-radius: 24px;
    }

    .industry-card-image {
        min-height: 164px;
    }

    .industry-detail-card {
        grid-template-columns: 1fr;
        padding: 24px;
        border-radius: 24px;
    }

    .industry-detail-solution {
        grid-column: auto;
    }

    .industry-detail-index {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .scenario-card,
    .roadmap-step {
        min-height: auto;
        border-radius: 24px;
    }

    .solutions-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .solutions-cta-section .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .solutions-hero-points span,
    .detail-tags span {
        font-size: 12px;
    }

    .industry-card-body h3,
    .scenario-card h3 {
        font-size: 20px;
    }
}

/* =========================
   解决方案 Hero - 移动端背景图防重叠优化
   只影响平板 / 移动端，不影响网页端
   ========================= */

/* 平板端：修正实际类名，避免原响应式选择器不生效 */
@media (max-width: 1180px) {
    .solutions-page-hero-inner,
    .roadmap-inner {
        grid-template-columns: 1fr;
    }

    .solutions-page-copy,
    .solutions-page-visual {
        grid-column: 1;
        width: min(860px, 100%);
    }

    .solutions-page-hero-inner {
        min-height: auto;
        align-content: start;
    }
}

/* 手机端：图片下沉，文字卡片在上方，避免背景图和文字重叠 */
@media (max-width: 760px) {
    .solutions-page-hero {
        min-height: auto;
        padding: 46px 0 310px;
        background-image: linear-gradient(
                180deg,
                rgba(247, 250, 255, 0.99) 0%,
                rgba(247, 250, 255, 0.98) 40%,
                rgba(247, 250, 255, 0.86) 60%,
                rgba(247, 250, 255, 0.30) 100%
        ),
        url("../images/solutions-hero.png");
        background-size: 100% 100%,
        150% auto;
        background-position: center center,
        left bottom;
        background-repeat: no-repeat;
    }

    .solutions-page-hero-inner {
        min-height: auto;
        gap: 26px;
    }

    .solutions-page-copy {
        padding: 24px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .solutions-page-copy h1 {
        letter-spacing: -0.8px;
    }

    .solutions-page-copy p {
        font-size: 16px;
    }

    .solutions-hero-actions {
        flex-direction: column;
    }

    .solutions-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .solutions-page-visual {
        padding: 22px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.86);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .solutions-visual-stack {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .solutions-layer {
        width: 100%;
    }

    .solutions-page-hero::before {
        background: radial-gradient(circle at 18% 14%, rgba(21, 94, 239, 0.12), transparent 34%),
        radial-gradient(circle at 78% 88%, rgba(0, 166, 214, 0.10), transparent 36%);
    }

    .solutions-page-hero::after {
        mask-image: linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.34) 0%,
                rgba(0, 0, 0, 0.18) 48%,
                transparent 80%
        );
    }
}