/* ==============================================
   Inner Page — Two-Column Layout
   ============================================== */

.ip-body {
    background: #f4f6fb;
    padding: 30px 0 60px;
}
.ip-wrap {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Banner fallback bg color (image added by admin) */
.inner-banner {
    background-color: #162960;
}

/* ==============================================
   Left Sidebar
   ============================================== */

.ip-sidebar {
    width: 230px;
    flex-shrink: 0;
}

.isd-panel {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid #e6edf7;
    box-shadow: 0 10px 26px rgba(24, 74, 146, 0.08);
}

/* 标题块 — 参考 #11 风格 */
.isd-panel-hd {
    background: linear-gradient(135deg, #1a3a7a 0%, #4177b7 100%);
    padding: 16px 18px 14px;
    position: relative;
    overflow: hidden;
}
.isd-panel-hd::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.isd-hd-cn {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1.2px;
    line-height: 1.3;
}
.isd-hd-en {
    font-size: 12px;
    color: rgba(255,255,255,0.72);
    letter-spacing: 2.4px;
    margin-top: 4px;
}

/* 分类列表 */
.isd-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.isd-nav-item {
    border-bottom: 1px solid #f0f2f5;
}
.isd-nav-item:last-child { border-bottom: none; }

.isd-nav-link {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    text-decoration: none;
    transition: background 0.18s;
    background: #fff;
}
.isd-nav-link:hover {
    background: #f0f5ff;
}
.isd-nav-item.active > .isd-nav-link {
    background: #4177b7;
}
.isd-nav-name {
    flex: 1;
    font-size: 15px;
    color: #233a63;
    font-weight: 600;
    transition: color 0.18s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.isd-nav-link:hover .isd-nav-name {
    color: #4177b7;
}
.isd-nav-item.active > .isd-nav-link .isd-nav-name {
    color: #fff;
    font-weight: 600;
}
.isd-nav-arr {
    flex-shrink: 0;
    font-size: 20px;
    color: #93a3bf;
    line-height: 1;
    transition: color 0.18s, transform 0.2s;
}
.isd-nav-link:hover .isd-nav-arr {
    color: #4177b7;
    transform: translateX(2px);
}
.isd-nav-item.active > .isd-nav-link .isd-nav-arr {
    color: rgba(255,255,255,0.8);
    transform: translateX(2px);
}

/* 三级子分类（仅在 active 二级下显示） */
.isd-nav-sub {
    display: none;
    background: linear-gradient(180deg, #eef5ff 0%, #f5f9ff 100%);
    border-top: 1px solid #d4e4f7;
    padding: 8px 10px 12px;
}
.isd-nav-item.active .isd-nav-sub {
    display: block;
}
.isd-nav-item.show-sub .isd-nav-sub {
    display: block;
}
.isd-sub-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    margin: 2px 0;
    font-size: 13.5px;
    color: #4d6285;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s, transform 0.18s;
}
/* 圆点指示器 — 替换原来的 › 箭头 */
.isd-sub-link span {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b4cce8;
    border: 2px solid #ddeaf8;
    flex-shrink: 0;
    font-size: 0;
    line-height: 0;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.isd-sub-link:hover {
    background: rgba(65,119,183,0.10);
    color: #2a5299;
    transform: translateX(3px);
}
.isd-sub-link:hover span {
    background: #4177b7;
    border-color: rgba(65,119,183,0.2);
    transform: scale(1.25);
}
.isd-sub-link.active {
    background: #4177b7;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(65,119,183,0.28);
    transform: none;
}
.isd-sub-link.active span {
    background: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.3);
}

/* Contact panel */
.isd-contact-body {
    padding: 14px 18px 16px;
}
.isd-contact-body p {
    font-size: 14px;
    color: #4f5f79;
    line-height: 1.9;
    margin-bottom: 2px;
}
.isd-tel {
    font-size: 17px !important;
    font-weight: 700;
    color: #4177b7 !important;
    letter-spacing: 1px;
}

/* ==============================================
   Right Main Content
   ============================================== */

.ip-main {
    flex: 1;
    min-width: 0;
}

/* Breadcrumb */
.ip-breadcrumb {
    background: #fff;
    border-radius: 4px;
    padding: 11px 18px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #999;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.ip-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.ip-breadcrumb a:hover { color: #4177b7; }
.ip-breadcrumb .sep { color: #ccc; }

/* Section heading */
.ip-sec-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    padding-left: 12px;
    border-left: 4px solid #4177b7;
    margin-bottom: 18px;
    line-height: 1.3;
}

/* ==============================================
   Product / Case Grid
   ============================================== */

.ip-prd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.ip-prd-item {
    display: block;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    text-decoration: none;
    transition: box-shadow 0.25s, transform 0.25s;
}
.ip-prd-item:hover {
    box-shadow: 0 8px 24px rgba(65,119,183,0.2);
    transform: translateY(-3px);
}
.ip-prd-img {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    background: #f5f5f5;
}
.ip-prd-img img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}
.ip-prd-item:hover .ip-prd-img img { transform: scale(1.06); }
.ip-prd-info {
    padding: 9px 10px 11px;
    border-top: 1px solid #f2f2f2;
}
.ip-prd-info p {
    font-size: 13px;
    color: #444;
    text-align: center;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==============================================
   News List
   ============================================== */

.ip-news-list {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    overflow: hidden;
    margin-bottom: 24px;
}
.ip-news-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 20px;
    border-bottom: 1px solid #f2f2f2;
    text-decoration: none;
    transition: background 0.18s;
}
.ip-news-item:last-child { border-bottom: none; }
.ip-news-item:hover { background: #f8fbff; }

.ip-news-date {
    flex-shrink: 0;
    width: 52px;
    background: #4177b7;
    color: #fff;
    border-radius: 4px;
    padding: 7px 4px;
    text-align: center;
}
.ip-news-date .nd-day {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    display: block;
}
.ip-news-date .nd-ym {
    font-size: 10px;
    opacity: 0.85;
    display: block;
    margin-top: 3px;
}

.ip-news-body { flex: 1; min-width: 0; }
.ip-news-body h4 {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
    transition: color 0.2s;
}
.ip-news-item:hover .ip-news-body h4 { color: #4177b7; }
.ip-news-body p {
    font-size: 13px;
    color: #888;
    line-height: 1.7;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ==============================================
   Pagination
   ============================================== */

.ip-pages {
    text-align: center;
    padding: 10px 0 4px;
}
.ip-pages ul {
    display: inline-flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
.ip-pages li a,
.ip-pages li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s;
}
.ip-pages li a:hover {
    background: #4177b7;
    border-color: #4177b7;
    color: #fff;
}
.ip-pages li.active span {
    background: #4177b7;
    border-color: #4177b7;
    color: #fff;
}
.ip-pages li.disabled span {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

/* ==============================================
   Detail Page — Common Wrapper
   ============================================== */

.ip-detail-box {
    background: #fff;
    border-radius: 4px;
    padding: 28px 30px 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Product showcase */
.ip-showcase {
    display: flex;
    gap: 32px;
    margin-bottom: 30px;
    padding-bottom: 26px;
    border-bottom: 1px solid #eee;
}
.ip-showcase-gallery {
    flex-shrink: 0;
    width: 340px;
}
.ip-showcase-main {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ip-showcase-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ip-showcase-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.ip-showcase-info h1 {
    font-size: 20px;
    color: #1a1a2e;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.ip-showcase-desc {
    font-size: 14px;
    color: #666;
    line-height: 2;
    margin-bottom: 16px;
}
/* 产品参数字段 */
.ip-spec-item {
    display: flex;
    gap: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    padding: 7px 0;
    border-bottom: 1px dashed #ebebeb;
}
.ip-spec-item:last-of-type { border-bottom: none; }
.ip-spec-label {
    flex-shrink: 0;
    color: #4177b7;
    font-weight: 600;
    white-space: nowrap;
}
.ip-spec-val { color: #555; }

/* 多图 Swiper 图集 */
.ip-swiper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.ip-swiper .swiper-wrapper,
.ip-swiper .swiper-slide {
    height: 100%;
}
.ip-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ip-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.ip-swiper-pagination { bottom: 8px; }

/* 缩略图列表 */
.ip-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.ip-thumb {
    width: 62px;
    height: 62px;
    border: 2px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}
.ip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ip-thumb.active { border-color: #4177b7; }
.ip-thumb:hover { border-color: #4177b7; }

.ip-btn-consult {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    background: linear-gradient(135deg, #2a5299 0%, #4177b7 100%);
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(65,119,183,0.28);
}
.ip-btn-consult:hover {
    background: linear-gradient(135deg, #1e3d78 0%, #3065a5 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65,119,183,0.38);
    color: #fff;
}

/* Case image showcase */
.ip-case-main-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin-bottom: 24px;
}

/* Article / case content */
.ip-content-title {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 2px solid #4177b7;
    text-align: center;
}
.ip-content-title h1 {
    font-size: 21px;
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.5;
}
.ip-content-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.ip-content-body {
    font-size: 15px;
    color: #444;
    line-height: 1.9;
}
.ip-content-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}
.ip-content-body p { margin-bottom: 14px; }

/* Prev / Next */
.ip-content-exp {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid #eee;
    font-size: 13px;
}
.ip-content-exp div { max-width: 48%; }
.ip-content-exp a {
    color: #4177b7;
    text-decoration: none;
    transition: color 0.2s;
}
.ip-content-exp a:hover { text-decoration: underline; }
.ip-content-exp .no-link { color: #bbb; }

/* ==============================================
   Related Content Section (on detail pages)
   ============================================== */

.ip-related-section {
    margin-top: 24px;
    background: #fff;
    border-radius: 4px;
    padding: 24px 28px 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.ip-related-section .ip-prd-grid {
    margin-bottom: 0;
}
.ip-related-section .ip-news-list {
    box-shadow: none;
    margin-bottom: 0;
    border: 1px solid #f0f2f5;
    border-radius: 4px;
}

/* 相关新闻 2列网格 */
.ip-rn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ip-rn-item {
    display: block;
    padding: 14px 16px;
    background: #f6f9fe;
    border: 1px solid #dde8f5;
    border-left: 3px solid #4177b7;
    border-radius: 0 4px 4px 0;
    text-decoration: none;
    transition: background 0.18s, border-color 0.18s;
}
.ip-rn-item:hover {
    background: #eaf2ff;
    border-left-color: #2a5299;
}
.ip-rn-title {
    font-size: 14px;
    color: #333;
    line-height: 1.55;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 7px;
    transition: color 0.18s;
}
.ip-rn-item:hover .ip-rn-title { color: #4177b7; }
.ip-rn-time {
    font-size: 12px;
    color: #aaa;
}

/* ==============================================
   响应式
   ============================================== */
/* ==============================================
   Search page
   ============================================== */
.ip-search-form { margin-bottom: 22px; }
.ip-search-bar { display: flex; }
.ip-search-input { flex: 1; height: 44px; padding: 0 16px; font-size: 15px; border: 2px solid #d4e0f0; border-right: none; border-radius: 4px 0 0 4px; outline: none; transition: border-color 0.2s; background: #fff; }
.ip-search-input:focus { border-color: #4177b7; }
.ip-search-btn { height: 44px; padding: 0 28px; background: #4177b7; color: #fff; font-size: 15px; border: none; border-radius: 0 4px 4px 0; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.ip-search-btn:hover { background: #2a5299; }
.ip-empty { padding: 48px 20px; text-align: center; color: #999; font-size: 15px; background: #fff; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.ip-empty p::before { content: '🔍 '; }

@media (max-width: 900px) {
    .ip-wrap { flex-direction: column; }
    .ip-main { order: 1; width: 100%; }
    .ip-sidebar { width: 100%; order: 2; }
    .isd-panel { display: none; }
    .ip-prd-grid { grid-template-columns: repeat(2, 1fr); }
    .ip-rn-grid { grid-template-columns: 1fr; }
    .ip-showcase { flex-direction: column; align-items: center; }
    .ip-showcase-gallery { width: 100%; max-width: 400px; margin: 0 auto; }
    .ip-showcase-info { width: 100%; text-align: center; }
    .ip-showcase-info h1 { text-align: left; }
    .ip-showcase-info .ip-showcase-desc { text-align: left; }
}
@media (max-width: 768px) {
    /* 侧栏没有内容，直接隐藏 */
    .ip-sidebar { display: none; }
    /* 主内容区 */
    .ip-body { padding: 14px 0 36px; }
    .ip-breadcrumb { padding: 9px 14px; font-size: 12px; margin-bottom: 14px; }
    .ip-sec-title { font-size: 15px; margin-bottom: 14px; }
    /* 产品网格 — 2列正方形图（类似电商风格）*/
    .ip-prd-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
    .ip-prd-img { padding-bottom: 100%; }
    .ip-prd-info p { font-size: 12px; padding: 8px 8px 10px; line-height: 1.4; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: unset; }
    /* 新闻列表 */
    .ip-news-item { padding: 14px 14px; gap: 12px; }
    .ip-news-body h4 { font-size: 14px; }
    /* 产品详情展示区 */
    .ip-showcase-gallery { max-width: 100%; }
    .ip-showcase-info h1 { font-size: 17px; }
    .ip-detail-box { padding: 16px 14px 22px; }
    .ip-content-title h1 { font-size: 16px; }
    /* 搜索框 */
    .ip-search-input { font-size: 14px; height: 40px; }
    .ip-search-btn { height: 40px; padding: 0 18px; font-size: 14px; }
    /* 分页 */
    .ip-pages li a, .ip-pages li span { min-width: 30px; height: 30px; font-size: 12px; }
}
@media (max-width: 600px) {
    .ip-detail-box { padding: 14px 12px 20px; }
    .ip-content-title h1 { font-size: 15px; }
    .ip-news-item { flex-direction: column; gap: 10px; }
    .ip-news-date { width: auto; display: flex; gap: 8px; align-items: center; padding: 5px 10px; }
    .ip-news-date .nd-day { font-size: 16px; }
    .ip-news-date .nd-ym { margin-top: 0; }
}
@media (max-width: 480px) {
    .ip-prd-grid { grid-template-columns: 1fr 1fr; }
}
