@charset "utf-8";

/* 首页客户网络拓扑与部署模式说明，网络方向依据 wx-core 和 apps-weixin 源码整理，by AI.Coding */
.network-section {
    position: relative;
    padding: 100px 28px 108px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 12%, rgba(45, 132, 248, .12), transparent 25%),
        linear-gradient(180deg, #edf5ff 0%, #f5f9fe 100%);
}
.network-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .38;
    background-image:
        linear-gradient(rgba(42, 104, 184, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 104, 184, .07) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, #000, transparent 68%);
}
.network-inner { position: relative; z-index: 1; width: min(1180px, 100%); margin: 0 auto; }
.network-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 38px;
    margin-bottom: 42px;
}
.network-heading .section-head { width: auto; margin: 0; }
.network-deployment-link {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 19px;
    color: #1d5fb7;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(69, 119, 181, .2);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(31, 76, 139, .08);
    font-size: 13px;
    font-weight: 700;
    transition: transform .2s ease, background-color .2s ease;
}
.network-deployment-link:hover { background: #fff; transform: translateY(-2px); }
.network-deployment-link span { font-size: 17px; }

.network-panel {
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 48% 37%, rgba(30, 120, 238, .22), transparent 27%),
        radial-gradient(circle at 8% 90%, rgba(29, 185, 208, .12), transparent 22%),
        linear-gradient(145deg, #071d42, #0a2b5d 55%, #0b3671);
    border: 1px solid rgba(16, 70, 137, .6);
    border-radius: 30px;
    box-shadow: 0 34px 78px rgba(19, 64, 126, .23);
}
.network-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 27px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .025);
}
.network-toolbar-title { display: flex; align-items: center; gap: 10px; }
.network-toolbar-title > i {
    width: 8px;
    height: 8px;
    background: #45d59a;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(69, 213, 154, .10), 0 0 18px rgba(69, 213, 154, .5);
}
.network-toolbar-title strong { font-size: 13px; }
.network-toolbar-title span { color: rgba(255, 255, 255, .38); font-family: Georgia, "Times New Roman", serif; font-size: 9px; letter-spacing: .13em; }
.network-toolbar-meta { display: inline-flex; align-items: center; gap: 9px; color: rgba(255, 255, 255, .48); font-size: 10px; }
.network-toolbar-meta strong {
    padding: 5px 9px;
    color: #7ce6ff;
    background: rgba(70, 190, 235, .1);
    border: 1px solid rgba(83, 207, 244, .17);
    border-radius: 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
}

.network-canvas {
    position: relative;
    width: min(1080px, calc(100% - 40px));
    height: 500px;
    margin: 20px auto 0;
}
.network-canvas::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .24;
    background-image:
        linear-gradient(rgba(88, 166, 255, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 166, 255, .12) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, #000 0%, transparent 74%);
}
.network-paths { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.network-line {
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 7 8;
    animation: network-flow 9s linear infinite;
}
.line-blue { stroke: #4ea3ff; }
.line-cyan { stroke: #55d7f4; animation-duration: 7.5s; }
.line-green { stroke: #45d59a; animation-duration: 11s; }
.line-orange { stroke: #ffb765; animation-duration: 10s; }
.line-dashed { opacity: .72; stroke-dasharray: 3 10; }

.network-flow-label {
    position: absolute;
    z-index: 3;
    padding: 5px 8px;
    color: rgba(223, 239, 255, .72);
    background: rgba(7, 30, 68, .88);
    border: 1px solid rgba(104, 168, 235, .16);
    border-radius: 7px;
    font-size: 9px;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}
.label-callback { top: 132px; left: 28.3%; }
.label-service { top: 266px; left: 27.5%; }
.label-push { top: 146px; right: 27.1%; }
.label-rest { top: 280px; right: 29.5%; }
.label-api { top: 27px; left: 50%; transform: translateX(-50%); }
.label-direct { bottom: 23px; left: 50%; color: #96edc6; transform: translateX(-50%); }

.network-zone {
    position: absolute;
    z-index: 2;
    background: rgba(10, 40, 83, .9);
    border: 1px solid rgba(111, 174, 240, .19);
    box-shadow: 0 22px 48px rgba(0, 9, 29, .22), inset 0 1px rgba(255, 255, 255, .035);
    backdrop-filter: blur(12px);
}
.network-zone-platform {
    top: 72px;
    left: 3px;
    width: 258px;
    min-height: 340px;
    padding: 22px;
    border-radius: 22px;
}
.network-zone-head { display: flex; align-items: center; gap: 12px; }
.network-zone-index {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #75c8ff;
    background: rgba(69, 151, 244, .1);
    border: 1px solid rgba(97, 177, 255, .16);
    border-radius: 11px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 10px;
    font-weight: 700;
}
.network-zone-head strong { display: block; font-size: 14px; }
.network-zone-head small { display: block; margin-top: 4px; color: rgba(255, 255, 255, .34); font-size: 8px; letter-spacing: .12em; }
.network-platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 22px; }
.network-platform-grid span {
    padding: 9px 8px;
    color: rgba(232, 243, 255, .78);
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 9px;
    text-align: center;
    font-size: 10px;
}
.network-subnodes { display: grid; gap: 8px; margin-top: 16px; }
.network-subnodes > div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    background: rgba(2, 17, 42, .32);
    border-radius: 11px;
}
.network-subnodes i { flex: none; width: 9px; height: 9px; border: 2px solid #0a2855; border-radius: 50%; }
.network-subnodes .api-dot { background: #ffb765; box-shadow: 0 0 0 4px rgba(255, 183, 101, .10); }
.network-subnodes .client-dot { background: #45d59a; box-shadow: 0 0 0 4px rgba(69, 213, 154, .10); }
.network-subnodes strong { display: block; font-size: 10px; }
.network-subnodes small { display: block; margin-top: 3px; color: rgba(255, 255, 255, .34); font-size: 8px; }

.network-zone-core {
    top: 157px;
    left: 50%;
    width: 252px;
    min-height: 205px;
    padding: 23px 22px 18px;
    border-color: rgba(83, 166, 255, .38);
    border-radius: 24px;
    text-align: center;
    transform: translateX(-50%);
    box-shadow: 0 26px 58px rgba(0, 18, 55, .34), 0 0 0 7px rgba(43, 121, 221, .045);
}
.network-core-halo {
    position: absolute;
    inset: -32px;
    z-index: -1;
    background: radial-gradient(circle, rgba(32, 125, 239, .17), transparent 65%);
    border-radius: 50%;
}
.network-core-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    margin: 0 auto 12px;
    color: #fff;
    background: linear-gradient(145deg, #55c9f4, #1768e5);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 15px;
    box-shadow: 0 13px 28px rgba(21, 101, 221, .3);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-weight: 700;
}
.network-zone-core > strong { display: block; font-size: 17px; }
.network-zone-core > small { display: block; margin-top: 4px; color: #69c9f4; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.network-zone-core ul { display: flex; justify-content: center; gap: 6px; margin: 15px 0 0; padding: 0; list-style: none; }
.network-zone-core li { padding: 5px 7px; color: rgba(255, 255, 255, .57); background: rgba(255, 255, 255, .05); border-radius: 6px; font-size: 8px; }
.network-core-mode { display: inline-block; margin-top: 13px; color: rgba(255, 255, 255, .44); font-size: 8px; letter-spacing: .08em; }

.network-zone-enterprise {
    top: 72px;
    right: 3px;
    width: 286px;
    min-height: 340px;
    padding: 20px;
    border-style: dashed;
    border-color: rgba(89, 213, 244, .29);
    border-radius: 24px;
}
.network-boundary-label { display: inline-flex; align-items: center; gap: 8px; color: rgba(163, 222, 244, .7); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.network-boundary-label i { width: 7px; height: 7px; background: #55d7f4; border-radius: 50%; box-shadow: 0 0 0 4px rgba(85, 215, 244, .09); }
.network-gateway,
.network-oa-node {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
}
.network-gateway { margin-top: 19px; }
.gateway-icon { display: flex; flex-direction: column; justify-content: center; gap: 3px; flex: none; width: 38px; height: 38px; padding: 9px; background: rgba(85, 215, 244, .1); border-radius: 11px; }
.gateway-icon i { display: block; height: 3px; background: #55d7f4; border-radius: 2px; }
.gateway-icon i:nth-child(2) { opacity: .7; }
.gateway-icon i:nth-child(3) { opacity: .42; }
.network-gateway strong,
.network-oa-node strong { display: block; font-size: 11px; }
.network-gateway small,
.network-oa-node small { display: block; margin-top: 4px; color: rgba(255, 255, 255, .37); font-size: 8px; }
.network-oa-node { margin-top: 10px; background: rgba(34, 104, 190, .11); border-color: rgba(78, 160, 244, .15); }
.oa-icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    color: #fff;
    background: linear-gradient(145deg, #9acb35, #5c9f2a);
    border-radius: 13px;
    box-shadow: 0 10px 22px rgba(75, 141, 36, .22);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-weight: 700;
}
.network-config-key { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 10px 11px; background: rgba(2, 17, 42, .31); border-radius: 10px; }
.network-config-key span { color: rgba(255, 255, 255, .4); font-size: 8px; }
.network-config-key code { color: #83ddff; font-family: Consolas, "Courier New", monospace; font-size: 8px; }

.network-flow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 0 20px 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
}
.network-flow-grid article { display: flex; gap: 11px; min-height: 126px; padding: 18px 16px; background: rgba(4, 24, 55, .88); }
.flow-number { display: flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; font-family: Georgia, "Times New Roman", serif; font-size: 9px; font-weight: 700; }
.flow-blue { color: #75bdff; background: rgba(78, 163, 255, .11); }
.flow-cyan { color: #7be5fa; background: rgba(85, 215, 244, .11); }
.flow-green { color: #7be7b7; background: rgba(69, 213, 154, .11); }
.flow-orange { color: #ffd099; background: rgba(255, 183, 101, .11); }
.network-flow-grid strong { display: block; font-size: 11px; }
.network-flow-grid p { margin: 7px 0 0; color: rgba(255, 255, 255, .42); font-size: 9px; line-height: 1.65; }
.network-flow-grid b { color: rgba(255, 255, 255, .68); font-weight: 650; }

.network-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.network-mode-card {
    position: relative;
    min-height: 190px;
    padding: 28px 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(80, 127, 187, .16);
    border-radius: 19px;
    box-shadow: 0 16px 38px rgba(31, 76, 139, .07);
}
.network-mode-card::after { content: ""; position: absolute; right: -50px; bottom: -75px; width: 180px; height: 180px; background: radial-gradient(circle, rgba(23, 104, 229, .1), transparent 67%); border-radius: 50%; }
.mode-tag { color: var(--brand-blue); font-family: Georgia, "Times New Roman", serif; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.network-mode-card h3 { margin: 12px 0 0; font-size: 19px; }
.network-mode-card p { max-width: 470px; margin: 12px 0 0; color: #697a91; font-size: 12px; line-height: 1.75; }
.network-mode-card code { padding: 2px 5px; color: #1c64c7; background: #eaf3ff; border-radius: 4px; font-family: Consolas, "Courier New", monospace; font-size: 10px; }
.network-mode-card a { position: relative; z-index: 1; display: inline-flex; gap: 7px; margin-top: 14px; color: var(--brand-blue); font-size: 11px; font-weight: 700; }
.private-mode { border-color: rgba(42, 169, 130, .18); }
.private-mode .mode-tag { color: #1d9e72; }
.private-mode::after { background: radial-gradient(circle, rgba(37, 190, 139, .11), transparent 67%); }
.network-footnote { margin: 18px 4px 0; color: #7a899d; font-size: 10px; line-height: 1.7; }

@keyframes network-flow {
    to { stroke-dashoffset: -120; }
}

@media (max-width: 1040px) {
    .network-canvas { height: auto; display: grid; gap: 42px; padding: 18px 0 22px; }
    .network-paths,
    .network-flow-label { display: none; }
    .network-zone {
        position: relative;
        inset: auto;
        width: min(620px, 100%);
        min-height: 0;
        margin: 0 auto;
        transform: none;
    }
    .network-zone:not(:last-of-type)::after {
        content: "↓  HTTPS";
        position: absolute;
        bottom: -31px;
        left: 50%;
        color: #62c9f2;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 9px;
        letter-spacing: .08em;
        transform: translateX(-50%);
    }
    .network-zone-platform { padding: 22px; }
    .network-zone-core { padding: 25px 22px 20px; }
    .network-zone-enterprise { padding: 22px; }
    .network-flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .network-section { padding: 76px 18px 80px; }
    .network-heading { align-items: flex-start; flex-direction: column; margin-bottom: 32px; }
    .network-deployment-link { width: 100%; justify-content: center; }
    .network-panel { border-radius: 22px; }
    .network-toolbar { padding: 0 17px; }
    .network-toolbar-title span { display: none; }
    .network-toolbar-meta span { display: none; }
    .network-canvas { width: calc(100% - 28px); }
    .network-platform-grid { grid-template-columns: repeat(2, 1fr); }
    .network-flow-grid { grid-template-columns: 1fr; margin: 0 14px 14px; }
    .network-flow-grid article { min-height: 0; }
    .network-mode-grid { grid-template-columns: 1fr; }
    .network-mode-card { min-height: 0; padding: 25px 23px; }
}

@media (prefers-reduced-motion: reduce) {
    .network-line { animation: none; }
}
