/* ==============================================
   解决方案页面 solution.css
   ============================================== */

/* banner — 基础样式由 inner-about.css 提供 */

/* ============================================
   4 大方案导航卡片
   ============================================ */
.sol-nav-section {
    background: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(20,50,120,0.10);
}
.sol-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.sol-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 16px 18px;
    text-decoration: none;
    border-right: 1px solid #edf2fb;
    border-bottom: 3px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    color: #333;
    position: relative;
    overflow: hidden;
}
.sol-nav-card:last-child { border-right: none; }
.sol-nav-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg,#1e4a9a,#4177b7);
    transform: scaleX(0);
    transition: transform 0.25s;
}
.sol-nav-card:hover::before,
.sol-nav-card.active::before { transform: scaleX(1); }
.sol-nav-card:hover, .sol-nav-card.active {
    background: #f0f6ff;
    color: #1a3a7a;
}
.sol-nav-ico {
    width: 40px; height: 40px;
    margin-bottom: 8px;
    color: #4177b7;
    transition: color 0.2s, transform 0.2s;
}
.sol-nav-card:hover .sol-nav-ico,
.sol-nav-card.active .sol-nav-ico {
    color: #1a3a7a;
    transform: translateY(-3px);
}
.sol-nav-ico svg { width: 100%; height: 100%; }
.sol-nav-cn { font-size: 15px; font-weight: 700; line-height: 1.4; }
.sol-nav-en { font-size: 11px; color: #999; margin-top: 2px; letter-spacing: 0.5px; transition: color 0.2s; }
.sol-nav-card:hover .sol-nav-en, .sol-nav-card.active .sol-nav-en { color: #4177b7; }

/* ============================================
   方案内容区块
   ============================================ */
.sol-block {
    padding: 64px 0 72px;
    background: #fff;
}
.sol-block-alt {
    background: #f4f7fd;
}
.sol-block-hd {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e4ecf8;
}
.sol-block-tag {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg,#1a3a7a 0%,#4177b7 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(65,119,183,0.30);
    letter-spacing: 1px;
}
.sol-block-hd h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a3a7a;
    margin: 0 0 4px;
    line-height: 1.3;
}
.sol-block-hd p {
    font-size: 13px;
    color: #aaa;
    letter-spacing: 2px;
    margin: 0;
}

/* ============================================
   内容区：图片自动瀑布/网格
   ============================================ */
.sol-content {
    /* 编辑器输出的 img 自动响应 */
}
.sol-content img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    border-radius: 6px;
    margin: 6px 6px 6px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: zoom-in;
}
.sol-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 28px rgba(65,119,183,0.22);
}
/* 图片尽量并排 */
.sol-content p { margin-bottom: 16px; }
.sol-content p img { vertical-align: top; }
/* 如果有多张并排，自动 flex wrap */
.sol-block-body {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}
.sol-block-body > * { flex: 0 0 auto; max-width: 100%; }
.sol-block-body img {
    flex: 1 1 220px;
    max-width: calc(33.33% - 8px);
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: zoom-in;
}
.sol-block-body img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 28px rgba(65,119,183,0.22);
}
/* 文字内容 */
.sol-block-body p, .sol-block-body h3, .sol-block-body h4 {
    flex: 1 1 100%;
    font-size: 15px;
    color: #444;
    line-height: 1.9;
    margin-bottom: 10px;
}
.sol-block-body h3, .sol-block-body h4 {
    color: #1a3a7a; font-weight: 700;
}

/* ============================================
   CMS 主内容区（统一编辑时用）
   ============================================ */
.sol-cms-section {
    padding: 60px 0 70px;
    background: #fff;
}
.sol-cms-body {
    font-size: 15px;
    color: #444;
    line-height: 1.9;
}
.sol-cms-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.sol-cms-body h2, .sol-cms-body h3 {
    font-size: 20px; font-weight: 700;
    color: #1a3a7a; margin: 28px 0 12px;
    padding-left: 14px;
    border-left: 4px solid #4177b7;
}
.sol-cms-body p { margin-bottom: 14px; }

/* ============================================
   底部咨询 CTA
   ============================================ */
.sol-cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg,#1a3a7a 0%,#2c5faa 100%);
}
.sol-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.sol-cta-text h3 {
    font-size: 24px; font-weight: 700;
    color: #fff; margin-bottom: 8px;
}
.sol-cta-text p {
    font-size: 15px; color: rgba(255,255,255,0.75);
}
.sol-cta-btn {
    flex-shrink: 0;
    padding: 14px 44px;
    background: #fff;
    color: #1a3a7a;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    white-space: nowrap;
}
.sol-cta-btn:hover {
    background: #f0f6ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* ============================================
   图片灯箱（点击放大）
   ============================================ */
.sol-lightbox-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.sol-lightbox-overlay.show { display: flex; }
.sol-lightbox-overlay img {
    max-width: 90vw; max-height: 90vh;
    border-radius: 6px;
    box-shadow: 0 16px 64px rgba(0,0,0,0.5);
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 900px) {
    .sol-nav-grid { grid-template-columns: repeat(2,1fr); }
    .sol-nav-card { border-right: 1px solid #edf2fb; }
    .sol-nav-card:nth-child(2n) { border-right: none; }
    .sol-nav-card:nth-child(3), .sol-nav-card:nth-child(4) { border-top: 1px solid #edf2fb; }
    .sol-block-body img { max-width: calc(50% - 6px); }
}
@media (max-width: 600px) {
    .sol-nav-grid { grid-template-columns: repeat(2,1fr); }
    .sol-block { padding: 40px 0 48px; }
    .sol-block-hd h2 { font-size: 20px; }
    .sol-block-body img { max-width: 100%; height: 160px; }
    .sol-cta-box { flex-direction: column; text-align: center; }
    .sol-cta-btn { width: 100%; text-align: center; }
}

/* ==============================================
   汇总页 Hub styles
   ============================================== */
.sol-hub-section {
    padding: 72px 0 80px;
    background: #f7f9fd;
}
.sol-sec-hd {
    text-align: center;
    margin-bottom: 52px;
}
.sol-sec-title {
    font-size: 30px;
    font-weight: 800;
    color: #1a3a7a;
    margin-bottom: 12px;
}
.sol-sec-sub {
    font-size: 15px;
    color: #888;
}
/* Hub 卡片 grid */
.sol-hub-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
.sol-hub-card {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
    background: #fff;
    border-radius: 12px;
    padding: 36px 28px 28px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    border: 1px solid #e8f0fb;
    transition: all 0.3s;
    box-shadow: 0 2px 16px rgba(20,50,120,0.06);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.sol-hub-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(20,50,120,0.14);
    border-color: #c0d4f0;
}
.sol-hub-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg,#1a3a7a,#4177b7);
    transform: scaleY(0);
    transition: transform 0.3s;
    transform-origin: bottom;
}
.sol-hub-card:hover::before { transform: scaleY(1); }
.sol-hub-num {
    position: absolute;
    top: 18px; right: 22px;
    font-size: 44px;
    font-weight: 900;
    color: rgba(65,119,183,0.07);
    line-height: 1;
    letter-spacing: -2px;
    user-select: none;
    pointer-events: none;
}
.sol-hub-ico {
    width: 52px; height: 52px;
    color: #4177b7;
    margin-bottom: 20px;
    transition: color 0.3s, transform 0.3s;
}
.sol-hub-ico svg { width: 100%; height: 100%; }
.sol-hub-card:hover .sol-hub-ico {
    color: #1a3a7a;
    transform: scale(1.1);
}
.sol-hub-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a3a7a;
    margin: 0 0 4px;
}
.sol-hub-en {
    font-size: 12px;
    color: #999;
    letter-spacing: 0.5px;
    margin: 0 0 16px;
}
.sol-hub-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 24px;
    flex: 1;
}
.sol-hub-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #4177b7;
    transition: color 0.2s, gap 0.2s;
}
.sol-hub-card:hover .sol-hub-more {
    color: #1a3a7a;
    gap: 10px;
}

/* ==============================================
   面包屑
   ============================================== */
.inner-crumb {
    background: #f5f7fc;
    border-bottom: 1px solid #eaeff8;
    padding: 10px 0;
    font-size: 13px;
    color: #888;
}
.inner-crumb a { color: #4177b7; text-decoration: none; }
.inner-crumb a:hover { text-decoration: underline; }
.crumb-sep { margin: 0 8px; color: #bbb; }

/* ==============================================
   子分类详情页 solution_sub
   ============================================== */
.sol-sub-section {
    padding: 56px 0 64px;
    background: #fff;
}
.sol-sub-body { margin-bottom: 40px; }
.sol-sub-cover {
    margin-bottom: 32px;
    border-radius: 8px;
    overflow: hidden;
    max-height: 480px;
    box-shadow: 0 4px 20px rgba(20,50,120,0.10);
}
.sol-sub-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.sol-sub-content {
    font-size: 15px;
    color: #444;
    line-height: 1.9;
}
.sol-sub-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 8px 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: zoom-in;
}
.sol-sub-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 28px rgba(65,119,183,0.20);
}
.sol-sub-content h2, .sol-sub-content h3 {
    font-size: 20px; font-weight: 700;
    color: #1a3a7a; margin: 24px 0 12px;
    padding-left: 12px;
    border-left: 4px solid #4177b7;
}
.sol-sub-content p { margin-bottom: 14px; }
.sol-sub-empty {
    text-align: center;
    padding: 80px 20px;
    color: #bbb;
}
.sol-sub-empty p { margin-top: 16px; font-size: 15px; }
.sol-sub-back { margin-top: 12px; }
.sol-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid #4177b7;
    color: #4177b7;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.sol-back-btn:hover {
    background: #4177b7;
    color: #fff;
}

/* ==============================================
   图集网格 Gallery
   ============================================== */
.sol-gallery {
    display: grid;
    gap: 10px;
    margin-top: 32px;
}
.sol-gallery--cols3 { grid-template-columns: repeat(3, 1fr); }
.sol-gallery--cols2 { grid-template-columns: repeat(2, 1fr); }

.sol-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    background: #eef2fa;
    cursor: pointer;
}
.sol-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(.25,.46,.45,.94);
}
.sol-gallery-zoom {
    position: absolute;
    inset: 0;
    background: rgba(10,30,80,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    pointer-events: all;
}
.sol-gallery-zoom svg {
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.25s, transform 0.25s;
    drop-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.sol-gallery-item:hover img {
    transform: scale(1.07);
}
.sol-gallery-item:hover .sol-gallery-zoom {
    background: rgba(10,30,80,0.40);
}
.sol-gallery-item:hover .sol-gallery-zoom svg {
    opacity: 1;
    transform: scale(1);
}

/* 灯箱 Lightbox */
.sol-lightbox-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.90);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.sol-lightbox-overlay.show { display: flex; }
.sol-lightbox-inner {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sol-lightbox-inner img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 6px;
    box-shadow: 0 16px 64px rgba(0,0,0,0.5);
    cursor: default;
}
.sol-lightbox-close {
    position: absolute;
    top: -40px; right: -8px;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    width: 36px; height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.sol-lightbox-close:hover { background: rgba(255,255,255,0.15); }

/* 瀑布流 Masonry （图片保持原始比例） */
.sol-gallery-masonry {
    columns: 3;
    column-gap: 12px;
    margin-top: 32px;
}
.sol-gallery-masonry .sol-gallery-item {
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: unset;
    background: #eef2fa;
}
.sol-gallery-masonry .sol-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: unset;
    transition: transform 0.4s cubic-bezier(.25,.46,.45,.94);
}
.sol-gallery-masonry .sol-gallery-item:hover img {
    transform: scale(1.04);
}
.sol-gallery-masonry .sol-gallery-zoom {
    position: absolute;
    inset: 0;
    background: rgba(10,30,80,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.sol-gallery-masonry .sol-gallery-item:hover .sol-gallery-zoom {
    background: rgba(10,30,80,0.38);
}
.sol-gallery-masonry .sol-gallery-zoom svg {
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.25s, transform 0.25s;
}
.sol-gallery-masonry .sol-gallery-item:hover .sol-gallery-zoom svg {
    opacity: 1;
    transform: scale(1);
}
@media (max-width: 800px) {
    .sol-gallery-masonry { columns: 2; }
}
@media (max-width: 500px) {
    .sol-gallery-masonry { columns: 1; }
}

/* Grid 响应式 */
@media (max-width: 800px) {
    .sol-gallery--cols3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .sol-gallery--cols3,
    .sol-gallery--cols2 { grid-template-columns: 1fr; }
    .sol-gallery-item { aspect-ratio: 16/9; }
}

/* Hub 响应式 */
@media (max-width: 640px) {
    .sol-hub-card { flex: 0 0 100%; max-width: 100%; }
    .sol-sec-title { font-size: 24px; }
    .sol-hub-section { padding: 48px 0 56px; }
}
