/* ============================================================
   ZY 2026 · 所有课程 · CATALOG MATRIX / 2026-11-18
   仅本页：课程索引导轨 + 数据矩阵单元 + 酸性绿点色
   ============================================================ */

html.zy-site .zy-cat {
    --cat-panel: #07101C;
    --cat-cyan: #5FF3E4;
    --cat-lime: #C6FF4A;

    position: relative;
    overflow: hidden;
    background:
        radial-gradient(560px 300px at 8% 0%, rgba(95, 243, 228, .14), transparent 66%),
        radial-gradient(500px 260px at 90% 20%, rgba(198, 255, 74, .08), transparent 70%),
        linear-gradient(180deg, #050B14 0%, #06101A 70%, #040A12 100%);
    border-top: 1px solid rgba(95, 243, 228, .25);
    border-bottom: 1px solid rgba(95, 243, 228, .18);
}

/* 点阵底 */
html.zy-site .zy-cat::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(95, 243, 228, .16) 1px, transparent 1.2px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .35) 58%, transparent 88%);
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .35) 58%, transparent 88%);
    opacity: .55;
}

/* 背景幽灵序号 */
html.zy-site .zy-cat::after {
    content: "07";
    position: absolute;
    right: 380px;
    bottom: -46px;
    font-family: var(--zy-mono);
    font-size: 220px;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(95, 243, 228, .07);
    pointer-events: none;
    user-select: none;
}

/* 左侧竖排索引轨 */
html.zy-site .zy-cat-rail {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(95, 243, 228, .14);
    background: rgba(0, 0, 0, .20);
    color: rgba(95, 243, 228, .55);
    font-family: var(--zy-mono);
    font-size: 8px;
    letter-spacing: .34em;
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    pointer-events: none;
}
html.zy-site .zy-cat-rail::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: repeating-linear-gradient(180deg, rgba(95, 243, 228, .35) 0 3px, transparent 3px 9px);
    opacity: .6;
}

html.zy-site .zy-cat-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 344px;
    gap: 64px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 38px 40px 36px 84px;
    box-sizing: border-box;
}

html.zy-site .zy-cat-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    font-family: var(--zy-mono);
    font-size: 9.5px;
    letter-spacing: .16em;
    color: #8FA6BE;
}
html.zy-site .zy-cat-kicker::before {
    content: "";
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, var(--cat-cyan), transparent);
}
html.zy-site .zy-cat-kicker b {
    color: var(--cat-lime);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(198, 255, 74, .35);
}

html.zy-site .zy-cat-title {
    margin: 0 0 10px;
    font-size: clamp(46px, 4.6vw, 62px);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.02;
    color: #F4FBFF;
    text-shadow: 0 0 30px rgba(95, 243, 228, .14);
}

html.zy-site .zy-cat-sub {
    margin: 0 0 24px;
    max-width: 660px;
    font-size: 14px;
    line-height: 1.75;
    color: #9FB3C8;
}

html.zy-site .zy-cat-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 20px;
    padding-bottom: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cat-lime);
    text-decoration: none;
    border-bottom: 1px solid rgba(198, 255, 74, .35);
}

html.zy-site .zy-cat-reset:hover { border-bottom-color: var(--cat-lime); }

html.zy-site .zy-cat-rule {
    display: block;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, var(--cat-lime), rgba(95, 243, 228, .35), transparent);
    box-shadow: 0 0 10px rgba(198, 255, 74, .35);
}

/* 数据矩阵面板 */
html.zy-site .zy-cat-panel {
    position: relative;
    border: 1px solid rgba(95, 243, 228, .24);
    background: rgba(5, 13, 23, .72);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, .45),
        inset 0 0 40px rgba(95, 243, 228, .04);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
html.zy-site .zy-cat-panel::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: linear-gradient(225deg, rgba(95, 243, 228, .50), transparent 55%);
    pointer-events: none;
}
html.zy-site .zy-cat-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(95, 243, 228, .14);
    font-family: var(--zy-mono);
    font-size: 8.5px;
    letter-spacing: .18em;
    color: #7E93AD;
}
html.zy-site .zy-cat-panel-head b {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cat-lime);
    font-weight: 500;
}
html.zy-site .zy-cat-panel-head b i {
    width: 4px;
    height: 4px;
    flex: none;
    background: var(--cat-lime);
    box-shadow: 0 0 8px rgba(198, 255, 74, .8);
    animation: zy-cat-pulse 2.4s ease-in-out infinite;
}

html.zy-site .zy-cat-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(95, 243, 228, .14);
}
html.zy-site .zy-cat-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 84px;
    padding: 13px 14px 12px;
    background: var(--cat-panel);
}
html.zy-site .zy-cat-cell::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 1px;
    background: rgba(95, 243, 228, .55);
}
html.zy-site .zy-cat-cell span {
    font-family: var(--zy-mono);
    font-size: 8px;
    letter-spacing: .14em;
    color: #7E93AD;
}
html.zy-site .zy-cat-cell b {
    font-family: var(--zy-mono);
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    color: #F4FBFF;
    text-shadow: 0 0 16px rgba(95, 243, 228, .25);
}
html.zy-site .zy-cat-cell--idx b {
    font-size: 16px;
    color: var(--cat-lime);
    text-shadow: 0 0 12px rgba(198, 255, 74, .40);
}

/* 右下条码 */
html.zy-site .zy-cat-barcode {
    position: absolute;
    right: 40px;
    bottom: 14px;
    width: 180px;
    height: 12px;
    opacity: .45;
    pointer-events: none;
    background: repeating-linear-gradient(90deg,
        rgba(198, 255, 74, .55) 0 2px, transparent 2px 5px,
        rgba(95, 243, 228, .40) 5px 6px, transparent 6px 11px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 80%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 30%, #000 80%, transparent);
}

@keyframes zy-cat-pulse {
    0%, 100% { opacity: .45; }
    50% { opacity: 1; }
}

@media (max-width: 1400px) {
    html.zy-site .zy-cat-inner {
        grid-template-columns: minmax(0, 1fr) 320px;
        padding-right: 80px;
    }
}

@media (max-width: 1080px) {
    html.zy-site .zy-cat-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-right: 40px;
    }
    html.zy-site .zy-cat-panel { max-width: 420px; }
}

@media (max-width: 900px) {
    html.zy-site .zy-cat-rail { display: none; }
    html.zy-site .zy-cat-inner { padding: 30px 20px 30px; }
    html.zy-site .zy-cat-title { font-size: 40px; }
    html.zy-site .zy-cat-panel { max-width: 100%; }
    html.zy-site .zy-cat::after,
    html.zy-site .zy-cat-barcode { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html.zy-site .zy-cat-panel-head b i { animation: none !important; }
}
