.service-hero {
    height: 480px;
    background-image: url('/images/service/img-security-banner.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}


.service-main {
    background-image: url('/images/img-page-bg.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% 100%;
    background-attachment: fixed;
}
.service-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0 244px;
}

.breadcrumb {
    margin: 0 auto;
    width: 100%;
    font-size: 16px;
    color: #051243;
}

.breadcrumb a {
    color: #051243;
    opacity: 0.4;
}
.breadcrumb img {
    width: 14px;
}

/* Service Layout */
.service-layout {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    margin-top: 48px;
}

/* Sidebar Styling */
.service-sidebar {
    width: 240px;
    background: #FFFFFF;
    border-top: 4px solid transparent;
    border-width: 4px 0 0 0;
    border-image: linear-gradient(265deg, #1892EE 5.11%, #0032D6 93.64%) 1;
    padding: 24px 20px;
    position: sticky;
    top: 80px;
}

.sidebar-group {
    margin-bottom: 24px;
}

.sidebar-group:last-child {
    margin-bottom: 0;
}

.sidebar-group-title {
    font-size: 12px;
    font-weight: 600;
    color: #051243;
    margin-bottom: 24px;
    cursor: pointer;
}
.sidebar-item:hover,
.sidebar-item.active {
    background: var(---1, #F2F7FB);
}
.group-arrow {
    width: 12px;
    transition: transform 0.3s ease;
}

.sidebar-group.active .group-arrow {
    transform: rotate(0deg);
}

.sidebar-group:not(.active) .group-arrow {
    transform: rotate(-90deg);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.sidebar-group.active .sidebar-menu {
    display: block;
}

.sidebar-item {
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 24px;
}
.sidebar-item:last-child {
    margin-bottom: 0;
}
.sidebar-link {
    padding-left: 16px;
    font-size: 14px;
    line-height: 24px;
    color: #888888;
    transition: all 0.3s;
}

.sidebar-item:hover .sidebar-link,
.sidebar-item.active .sidebar-link {
    color: #0032D6;
}

.item-arrow {
    width: 14px;
    height: 14px;
    background-image: url('/images/service/icon-arrow-blue.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s;
    display: none;
    flex-shrink: 0;
}

.sidebar-item .item-arrow {
    display: none;
}

.sidebar-item.active .item-arrow {
    display: inline-block;
    background-image: url('/images/service/icon-arrow-blue.png');
}

/* Content Styling */
.service-content {
    min-height: 600px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* 監視・運用サービス */
.content-title {
    color: #051243;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    margin-bottom: 24px;
}
.content-desc {
    color: #051243;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 24px;
}
.line-hr {
    height: 1px;
    background: rgba(5, 18, 67, 0.1);
    margin: 40px 0;
}
.content-image-80 {
    width: 80%;
    margin: 32px auto;
}

.content-image-80 img {
    width: 100%;
    display: block;
}

.content-image-row {
  display: flex;
  align-items: center;
  gap: 0;            
  width: 100%;       
  margin-bottom: 12px;
}

.content-image-row img {
  display: block;
  width: 25%;        
  height: auto;      
  object-fit: cover;
}
.sub-title {
    color: #051243;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    margin-bottom: 24px;
}
.other-solution-title {
    color: #0068B6;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}
.solution {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.other-solution-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
}

.icon-security-1 {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.solution-cta {
    color: #051243;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    margin-top: 8px;
}
.border-card {
    border: 4px solid #E5F0F8;
    background: #FFFFFF;
    padding: 24px;
}
.card-list {
  margin: 0;
  padding-left: 20px;
}
.card-list li {
  color: #4A4D56;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  list-style: disc;
  margin-bottom: 4px;
}
.other-solution-desc {
    color: #4A4D56;
    font-size: 14px;
    line-height: 24px;
    font-weight: 300;
    flex: 1;
}
.other-solution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
/* =========================================
   响应式设计 (768px 及以下)
   ========================================= */
@media (max-width: 768px) {
    .service-hero {
        height: 320px;
    }

    .service-container {
        padding: 16px 16px 100px;
    }

    .service-layout {
        flex-direction: column;
        gap: 24px;
        margin-top: 24px;
    }

    /* 侧边栏转为顶部 Tab */
    .service-sidebar {
        width: 100%;
        position: sticky;
        top: 52px; /* 对应移动端 Header 高度 */
        z-index: 1001;
        padding: 0;
        background: #FFFFFF;
        border: none;
        margin-bottom: 0;
    }

    .sidebar-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .sidebar-group {
        margin-bottom: 0;
        display: contents; /* 使子元素直接参与 wrapper 的 grid 布局 */
    }

    .sidebar-group-title {
        grid-row: 1;
        margin-bottom: 0;
        padding: 8px 4px;
        font-size: 14px;
        color: #051243;
        text-align: center;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        gap: 4px;
        background: #ffffff;
        cursor: pointer;
        height: 100%;
    }
    .sidebar-group.active .sidebar-group-title {
        background: #F2F7FB;
        color: #051243; /* 保持与默认颜色一致 */
    }

    /* 二级菜单转为横向 Row */
    .sidebar-menu {
        grid-row: 2;
        grid-column: 1 / -1;
        display: none; /* 默认隐藏，仅在 active 组下显示 */
        flex-direction: row;
        overflow-x: auto;
        background: #F2F7FB;
        padding: 8px 4px;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-group.active .sidebar-menu {
        display: flex;
    }

    .sidebar-item {
        margin-bottom: 0;
        flex-shrink: 0;
        padding: 6px 12px;
    }

    .sidebar-link {
        padding-left: 0;
        font-size: 12px;
        color: #888888;
    }

    .sidebar-item.active .sidebar-link {
        color: #0032D6;
    }

    .item-arrow {
        display: none; /* 移动端 Tab 不需要箭头 */
    }

    /* 内容区域调整 */
    .service-content {
        width: 100%;
    }

    .content-title {
        font-size: 20px;
        line-height: 28px;
    }

    /* 网格子元素调整 */
    .benefit-grid, .other-solution-grid, .feature-grid, .dx-feature-grid {
        grid-template-columns: 1fr;
    }

    .solution-item {
        flex-direction: column;
    }

    .solution-visual {
        width: 100%;
    }

    .service-about-card {
        flex-direction: column;
        padding: 24px 20px;
        text-align: center;
    }
}
