/* ==========================================================================
   CELSKY 官网 — technology.css
   技术原理与架构页专属样式（Hero 背景 / 区块 2 拓扑图 / 区块 3 四层架构 /
                              区块 4 eSIM / 区块 5 安全 / 区块 6 路线图）
   复用 inner.css 的通用类（product-band / band-intro / feature-list / scope-note /
                            delivery-steps / product-cta 等），本文件只定义新区块。
   配色统一使用 styles.css 的 CSS 变量。
   ========================================================================== */

/* ---------- Hero：由 inner.css 统一处理（technology 用 technology_hero_bg 深色图 + 深遮罩 + 浅字）---------- */
/* technology.css 不再重复定义 hero 规则，避免覆盖 inner.css 的统一配置 */

/* ---------- 区块 2：原理区包裹（文案在上 / 拓扑在下，纵向流，避免两栏失衡）---------- */
/* 区块 2：两栏布局下，左侧文案垂直居中，避免与右侧多层拓扑图高度失衡 */
#principles .band-intro {
    align-self: center
}

/* ---------- 区块 2：多层网络拓扑图（纵向分层，每层多节点，层间标注连接）---------- */
.topo-diagram {
    margin: 0;
    padding: 16px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 26px rgba(1, 31, 105, .07)
}

.topo-layer {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cloud)
}

.topo-layer + .topo-link {
    margin: 0
}

.topo-layer-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: .03em;
    padding-left: 4px;
    border-left: 3px solid var(--sky);
    line-height: 1.3
}

.topo-layer-body {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.topo-cell {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 12.5px;
    color: var(--ink);
    line-height: 1.3
}

.topo-cell iconify-icon {
    font-size: 18px;
    color: var(--sky);
    flex: 0 0 auto
}

/* 平台层整体强调品牌色 */
.topo-layer-brand {
    background: var(--pale);
    border-color: #c3d6ea
}

.topo-layer-brand .topo-layer-label {
    color: var(--deep);
    border-left-color: var(--brand)
}

.topo-layer-brand .topo-cell iconify-icon {
    color: var(--brand)
}

.topo-cell-strong {
    border-color: var(--brand);
    background: #eef4ff;
    font-weight: 600
}

.topo-cell-strong iconify-icon {
    color: var(--brand)
}

/* 层间连接标注（垂直流向 + 原理标签）*/
.topo-link {
    text-align: center;
    padding: 3px 0;
    position: relative
}

.topo-link::before {
    content: "";
    display: block;
    width: 2px;
    height: 8px;
    margin: 0 auto;
    background: var(--sky);
    opacity: .5
}

.topo-link span {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 3px 12px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    margin-top: 2px
}

.topo-caption {
    margin: 18px auto 0;
    max-width: 920px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    line-height: 1.6
}

/* 三层原理小卡片 */
.principle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px
}

.principle-grid article {
    padding: 24px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    border-top: 3px solid var(--sky)
}

.principle-grid .p-step {
    display: inline-block;
    color: var(--sky);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em
}

.principle-grid h3 {
    font-size: 17px;
    margin: 10px 0 8px
}

.principle-grid p {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 10px
}

.principle-grid .p-view {
    font-size: 12px;
    color: var(--brand);
    font-style: italic;
    border-top: 1px dashed var(--line);
    padding-top: 10px;
    margin: 0
}

/* ---------- 区块 3：四层架构图 ---------- */
.tech-arch-stack {
    margin-top: 40px;
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden
}

.tech-arch-stack .arch-layer {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 22px 26px;
    border-bottom: 1px solid var(--line);
    background: #fff
}

.tech-arch-stack .arch-layer:last-child {
    border-bottom: 0
}

.tech-arch-stack .arch-layer:nth-child(2) {
    background: var(--cloud)
}

.tech-arch-stack .arch-layer:nth-child(4) {
    background: var(--cloud)
}

.arch-layer .arch-name {
    display: flex;
    align-items: center;
    gap: 12px
}

.arch-layer .arch-name iconify-icon {
    font-size: 26px;
    color: var(--brand)
}

.arch-layer .arch-name strong {
    font-size: 17px;
    color: var(--ink)
}

.arch-layer .arch-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5
}

.arch-layer .arch-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    max-width: 280px
}

.arch-layer .arch-tags span {
    font-size: 11px;
    color: var(--brand);
    background: var(--pale);
    border: 1px solid var(--line);
    padding: 3px 9px;
    border-radius: 99px;
    white-space: nowrap
}

.arch-footnote {
    margin-top: 22px;
    padding: 16px 20px;
    border-left: 3px solid var(--accent);
    background: #fff7f3;
    color: #8a4a30;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 0 4px 4px 0
}

/* ---------- 区块 4：eSIM 三要素 ---------- */
.esim-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 38px
}

.esim-grid article {
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    border-top: 3px solid var(--brand)
}

.esim-grid .e-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em
}

.esim-grid .e-label iconify-icon {
    font-size: 18px
}

.esim-grid h3 {
    font-size: 18px;
    margin: 14px 0 10px
}

.esim-grid p {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 14px;
    line-height: 1.55
}

.esim-grid .e-cap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #2f7a52;
    background: #ecf6ef;
    border: 1px solid #cfe8da;
    padding: 5px 10px;
    border-radius: 4px
}

.esim-fit {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.esim-fit li {
    list-style: none;
    padding: 16px 18px;
    background: var(--cloud);
    border-radius: 6px;
    font-size: 13px;
    color: var(--ink);
    line-height: 1.5
}

.esim-fit li::before {
    content: "▸";
    color: var(--sky);
    font-weight: 800;
    margin-right: 8px
}

/* ---------- 区块 5：安全 5 项 ---------- */
.security-list {
    margin-top: 38px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line)
}

.security-list article {
    padding: 26px 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff
}

.security-list .s-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px
}

.security-list .s-head iconify-icon {
    font-size: 24px;
    color: var(--sky);
    flex: 0 0 auto
}

.security-list .s-head h3 {
    font-size: 17px;
    margin: 0
}

.security-list article p {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0;
    line-height: 1.55
}

/* 让最后一项（第5项）跨整行，保持 2 列网格平衡（5项=2+2+1） */
.security-list article:last-child {
    grid-column: 1 / -1;
    background: var(--cloud)
}

/* ---------- 区块 6：路线图三阶段 ---------- */
.tech-roadmap {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    position: relative
}

.tech-roadmap .phase {
    padding: 30px 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    position: relative;
    border-top: 4px solid var(--brand)
}

.tech-roadmap .phase.explore {
    border-top-color: var(--muted);
    background: var(--cloud)
}

.tech-roadmap .ph-num {
    display: inline-block;
    color: var(--sky);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em
}

.tech-roadmap .ph-status {
    float: right;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px
}

.tech-roadmap .ph-status.ready {
    color: #2f7a52;
    background: #ecf6ef;
    border: 1px solid #cfe8da
}

.tech-roadmap .ph-status.explore {
    color: var(--muted);
    background: var(--pale);
    border: 1px solid var(--line)
}

.tech-roadmap h3 {
    font-size: 18px;
    margin: 8px 0 12px;
    clear: both
}

.tech-roadmap .phase p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    line-height: 1.55
}

.tech-roadmap .ph-items {
    list-style: none;
    margin: 14px 0 0;
    padding: 0
}

.tech-roadmap .ph-items li {
    font-size: 12.5px;
    color: var(--ink);
    padding: 4px 0 4px 16px;
    position: relative
}

.tech-roadmap .ph-items li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--sky);
    border-radius: 50%
}

/* ---------- 区块标题通用 ---------- */
.tech-section-head {
    max-width: 820px
}

.tech-section-head h2 {
    font-size: 32px;
    margin: 10px 0 14px
}

.tech-section-head>p:not(.section-kicker) {
    color: var(--muted);
    font-size: 16px
}

/* ---------- 响应式 ---------- */
@media(max-width:1050px) {
    .principle-grid,
    .esim-grid,
    .tech-roadmap {
        grid-template-columns: 1fr 1fr
    }

    .tech-arch-stack .arch-layer {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .arch-layer .arch-tags {
        justify-content: flex-start;
        max-width: none
    }

    .security-list {
        grid-template-columns: 1fr
    }

    .security-list article:last-child {
        grid-column: auto
    }

    .esim-fit {
        grid-template-columns: 1fr
    }

    .tech-section-head h2 {
        font-size: 28px
    }

    /* 多层拓扑图：中屏标签列收窄 */
    .topo-layer {
        grid-template-columns: 120px 1fr;
        gap: 14px;
        padding: 14px 14px
    }

    .topo-cell {
        font-size: 12px;
        padding: 8px 11px
    }
}

@media(max-width:720px) {
    .principle-grid,
    .esim-grid,
    .tech-roadmap {
        grid-template-columns: 1fr
    }

    .tech-section-head h2 {
        font-size: 24px
    }

    /* 多层拓扑图：小屏标签上置、节点换行 */
    .topo-diagram {
        padding: 16px 12px
    }

    .topo-layer {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px
    }

    .topo-layer-label {
        border-left: 0;
        padding-left: 0;
        border-bottom: 2px solid var(--sky);
        padding-bottom: 4px
    }

    .topo-layer-body {
        gap: 8px
    }

    .topo-cell {
        flex: 1 1 calc(50% - 8px)
    }
}
