/* ============================================================
   ZY 2026 · 公益课堂 · PUBLIC GOOD HERO / 2026-11-18
   仅本页：普惠知识网（地球经纬 + 四类资源浮卡）+ 青绿 / 暖金点色
   与 ai_edu / certificate / 频道页同一套深色科技 Hero 语言
   ============================================================ */

html.zy-site .pubx-hero {
    --px-jade: #5FF3E4;
    --px-green: #7DF0A6;
    --px-gold: #FFD166;

    position: relative;
    overflow: hidden;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
        radial-gradient(620px 360px at 12% 0%, rgba(125, 240, 166, .13), transparent 66%),
        radial-gradient(560px 340px at 88% 10%, rgba(95, 243, 228, .10), transparent 68%),
        radial-gradient(460px 300px at 72% 92%, rgba(255, 209, 102, .06), transparent 72%),
        linear-gradient(180deg, #050B14 0%, #07101A 64%, #040A12 100%);
    border-top: 1px solid rgba(125, 240, 166, .26);
    border-bottom: 1px solid rgba(125, 240, 166, .16);
}

/* 点阵网格：向右上收束 */
html.zy-site .pubx-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(95, 243, 228, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(95, 243, 228, .06) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse at 74% 46%, #000 6%, rgba(0, 0, 0, .40) 52%, transparent 84%);
    mask-image: radial-gradient(ellipse at 74% 46%, #000 6%, rgba(0, 0, 0, .40) 52%, transparent 84%);
    opacity: .85;
}

/* 顶部信号线 */
html.zy-site .pubx-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, #7DF0A6 14%, #5FF3E4 44%, #FFD166 78%, transparent);
    filter: drop-shadow(0 0 6px rgba(125, 240, 166, .42));
}

html.zy-site .pubx-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 48px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 54px 40px 46px;
    box-sizing: border-box;
}

/* ---------- 左侧文案 ---------- */
html.zy-site .pubx-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    font-family: var(--zy-mono);
    font-size: 9.5px;
    letter-spacing: .18em;
    color: var(--px-jade);
}
html.zy-site .pubx-kicker i {
    width: 5px;
    height: 5px;
    flex: none;
    border-radius: 50%;
    background: var(--px-green);
    box-shadow: 0 0 10px rgba(125, 240, 166, .9);
    animation: zy-pubx-pulse 2.2s ease-in-out infinite;
}
html.zy-site .pubx-kicker::before {
    content: "";
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, var(--px-green), transparent);
}

html.zy-site .pubx-title {
    margin: 0 0 14px;
    font-size: clamp(48px, 5vw, 68px);
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1.02;
    color: #F4FBFF;
}
html.zy-site .pubx-accent {
    background: linear-gradient(100deg, var(--px-green) 0%, var(--px-jade) 52%, #00E5FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 22px rgba(95, 243, 228, .26));
}

html.zy-site .pubx-sub {
    margin: 0 0 26px;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.9;
    color: #9FB3C8;
}

html.zy-site .pubx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 30px;
}
html.zy-site .pubx-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid rgba(125, 240, 166, .20);
    background: rgba(6, 16, 28, .55);
    color: #B9D7E2;
    font-family: var(--zy-mono);
    font-size: 11px;
    letter-spacing: .04em;
    line-height: 1.4;
}
html.zy-site .pubx-tag .tagi {
    display: inline-flex;
    flex: none;
}
html.zy-site .pubx-tag svg {
    width: 14px;
    height: 14px;
    flex: none;
    fill: none;
    stroke: var(--px-jade);
}

html.zy-site .pubx-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
html.zy-site .pubx-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 46px;
    padding: 0 24px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
html.zy-site .pubx-btn svg { width: 16px; height: 16px; }
html.zy-site .pubx-btn--p {
    background: linear-gradient(100deg, #0E8F8F 0%, #00C2A8 52%, #7DF0A6 100%);
    color: #04121C;
    box-shadow: 0 0 26px rgba(125, 240, 166, .20);
}
html.zy-site .pubx-btn--p:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 38px rgba(125, 240, 166, .34);
}
html.zy-site .pubx-btn--g {
    border-color: rgba(125, 240, 166, .32);
    background: rgba(6, 16, 28, .42);
    color: #D7F4FF;
}
html.zy-site .pubx-btn--g:hover {
    border-color: rgba(125, 240, 166, .68);
    background: rgba(125, 240, 166, .06);
    transform: translateY(-2px);
}

/* ---------- 右侧普惠知识网 ---------- */
html.zy-site .pubx-visual {
    position: relative;
    width: 420px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin-left: auto;
}
html.zy-site .pubx-globe {
    position: absolute;
    inset: 0;
}
html.zy-site .pubx-net {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}
html.zy-site .pubx-net .px-ring {
    fill: none;
    stroke: rgba(125, 240, 166, .38);
    stroke-width: 1;
}
html.zy-site .pubx-net .px-ring--soft {
    stroke: rgba(95, 243, 228, .22);
}
html.zy-site .pubx-net .px-orbit {
    fill: none;
    stroke: rgba(95, 243, 228, .34);
    stroke-width: 1;
    stroke-dasharray: 2 10;
    transform-box: view-box;
    transform-origin: 230px 236px;
    animation: zy-pubx-rotate 46s linear infinite;
}
html.zy-site .pubx-net .px-lat {
    fill: none;
    stroke: rgba(95, 243, 228, .18);
    stroke-width: 1;
}
html.zy-site .pubx-net .px-axis {
    stroke: rgba(95, 243, 228, .13);
    stroke-width: 1;
}
html.zy-site .pubx-net .px-nodes circle {
    fill: var(--px-jade);
    opacity: .68;
    animation: zy-pubx-node 3.2s ease-in-out infinite;
}
html.zy-site .pubx-net .px-nodes circle:nth-child(2n) {
    fill: var(--px-green);
    animation-delay: 1.2s;
}
html.zy-site .pubx-net .px-nodes circle:nth-child(3n) {
    fill: var(--px-gold);
    animation-delay: .6s;
}
html.zy-site .pubx-net .px-core {
    fill: #EAFFFF;
    filter: drop-shadow(0 0 14px rgba(125, 240, 166, .85));
}
html.zy-site .pubx-net .px-core-ring {
    fill: none;
    stroke: rgba(125, 240, 166, .45);
    stroke-width: 1;
    animation: zy-pubx-core 3.6s ease-out infinite;
    transform-box: view-box;
    transform-origin: 230px 236px;
}
html.zy-site .pubx-net .px-sweep {
    transform-box: view-box;
    transform-origin: 230px 236px;
    animation: zy-pubx-rotate 10s linear infinite;
}
html.zy-site .pubx-net .px-sweep path {
    fill: none;
    stroke: url(#pxRim);
    stroke-width: 1.2;
    opacity: .55;
}

/* 四类资源浮卡 */
html.zy-site .pubx-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(5, 13, 24, .82);
    border: 1px solid rgba(125, 240, 166, .26);
    color: #CBE6EE;
    font-family: var(--zy-mono);
    font-size: 9px;
    letter-spacing: .06em;
    white-space: nowrap;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .38);
    animation: zy-pubx-float 7s ease-in-out infinite;
}
html.zy-site .pubx-chip svg {
    width: 12px;
    height: 12px;
    flex: none;
    fill: none;
    stroke: var(--px-jade);
}
html.zy-site .pubx-chip--a { top: 12%; left: -6px; animation-delay: 0s; }
html.zy-site .pubx-chip--b { top: 26%; right: -18px; animation-delay: 1.1s; }
html.zy-site .pubx-chip--c { bottom: 24%; left: -14px; animation-delay: 2.2s; }
html.zy-site .pubx-chip--d { bottom: 10%; right: -4px; animation-delay: 3.1s; }
html.zy-site .pubx-chip--b svg { stroke: var(--px-green); }
html.zy-site .pubx-chip--c svg { stroke: var(--px-gold); }

html.zy-site .pubx-hud {
    position: absolute;
    font-family: var(--zy-mono);
    font-size: 8px;
    letter-spacing: .16em;
    color: rgba(125, 240, 166, .62);
    pointer-events: none;
    white-space: nowrap;
}
html.zy-site .pubx-hud--tl { top: 4px; left: 0; }
html.zy-site .pubx-hud--tr { top: 4px; right: 0; display: inline-flex; align-items: center; gap: 5px; }
html.zy-site .pubx-hud--tr i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--px-green);
    box-shadow: 0 0 8px rgba(125, 240, 166, .9);
}
html.zy-site .pubx-hud--bl { bottom: 4px; left: 0; }
html.zy-site .pubx-hud--br { bottom: 4px; right: 0; }

/* ---------- 底部状态轨 ---------- */
html.zy-site .pubx-rail {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 40px;
    border-top: 1px dashed rgba(125, 240, 166, .16);
    font-family: var(--zy-mono);
    font-size: 8px;
    letter-spacing: .14em;
    color: rgba(159, 179, 200, .62);
}
html.zy-site .pubx-rail-live {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(125, 240, 166, .78);
}
html.zy-site .pubx-rail-live i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--px-green);
    animation: zy-pubx-pulse 2s ease-in-out infinite;
}

/* ---------- 动画 ---------- */
@keyframes zy-pubx-rotate {
    to { transform: rotate(360deg); }
}
@keyframes zy-pubx-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .32; }
}
@keyframes zy-pubx-node {
    0%, 100% { opacity: .35; }
    50% { opacity: .85; }
}
@keyframes zy-pubx-core {
    0% { transform: scale(.55); opacity: .7; }
    100% { transform: scale(1.5); opacity: 0; }
}
@keyframes zy-pubx-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    html.zy-site .pubx-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 44px 28px 40px;
    }
    html.zy-site .pubx-visual {
        width: 360px;
        margin: 0 auto;
    }
    html.zy-site .pubx-rail { padding: 12px 28px; }
}
@media (max-width: 720px) {
    html.zy-site .pubx-title { font-size: 36px; }
    html.zy-site .pubx-visual { width: 300px; }
    html.zy-site .pubx-chip { font-size: 8px; }
    html.zy-site .pubx-rail span:nth-child(2) { display: none; }
}

/* 无动画偏好 */
@media (prefers-reduced-motion: reduce) {
    html.zy-site .pubx-net .px-orbit,
    html.zy-site .pubx-net .px-sweep,
    html.zy-site .pubx-net .px-core-ring,
    html.zy-site .pubx-net .px-nodes circle,
    html.zy-site .pubx-chip,
    html.zy-site .pubx-kicker i,
    html.zy-site .pubx-rail-live i {
        animation: none;
    }
}
