/* 避免侧向溢出 */
* {
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
}

/* hero区 */
.contributors-hero {
    text-align: center;
    padding: 100px 20px;

        background: radial-gradient(
        circle at center,
        rgba(13, 17, 23, 0.2),
        rgba(13, 17, 23, 0.85)
    );
}

.contributors-hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle,
        rgba(88,166,255,0.15),
        transparent 70%
    );
    filter: blur(10px);
    z-index: -1;
}

.contributors-hero h1 {
    font-size: 48px;
    color: #58a6ff;
    text-shadow: 0 0 20px rgba(88,166,255,0.4);
    letter-spacing: 3px;
}

.contributors-hero p {
    color: rgba(255,255,255,0.6);
    letter-spacing: 2px;
}

.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

.contributors-page,header{
    position: relative;
    z-index: 1;
}


/* 网格 */

.member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 30px 0;
}

@media (max-width: 900px) {
    .member-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .member-grid {
        grid-template-columns: 1fr;
        justify-items: center; 
    }
}

/* 标签 */

.tag {
    display: inline-block;
    margin: 3px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #21262d;
    color: #58a6ff;
    font-size: 12px;
}

/* 卡片 */

.member {
    width: 100%;
    background: #161b22;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    pointer-events: auto;
}

.member img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.member:hover {
    transform: translateY(-8px);
}

/* CORE 标签 */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 8px;

    color: #58a6ff;
    border: 1px solid #58a6ff;

    background: rgba(88,166,255,0.1);
    backdrop-filter: blur(4px);

    transition: 0.2s;
    z-index: 2; 
}

/* 高光 */

.member.highlight {
    position: relative;
    border: 1px solid transparent;
    background: #161b22;
    z-index: 1;
}


.member::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        rgba(88,166,255,0.2),
        transparent 60%
    );
        border: 1px solid #58a6ff;
    opacity: 0;
    transition: 0.2s;

    pointer-events: none;
}

.member:hover::after {
    opacity: 1;
}

/* 背景扫描线 */

body::after {
    content: "";
    position: fixed;
    width: 100vw;   /* 👈 关键 */
    height: 100vh;  /* 👈 关键 */
    background: repeating-linear-gradient(
        transparent,
        transparent 2px,
        rgba(255,255,255,0.05) 3px
    )!important;
    pointer-events: none;
    z-index: 999;
    overflow-x: hidden;
}


/* 成员介绍 */

.dept {
    margin-top: 80px;
}

/* 标题风格 */
.dept h2 {
    font-size: 28px;
    margin-bottom: 20px;
    position: relative;
}

/* 技术部 */
.dept-tech h2 {
    color: #58a6ff;
}
.dept-tech h2::after {
    background: #58a6ff;
}

/* 宣传部 */
.dept-media h2 {
    color: #ff7b72;
}
.dept-media h2::after {
    background: #ff7b72;
}

/* 运营部 */
.dept-ops h2 {
    color: #3fb950;
}
.dept-ops h2::after {
    background: #3fb950;
}

.dept-leadership h2 {
    color: #d2a8ff;
}
.dept-leadership h2::after {
    background: #d2a8ff;
}

.dept h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 3px;
}

/* 技术部：蓝 */
.member.dept-tech {
    border-top: 3px solid #58a6ff;
}

/* 宣传部：红 */
.member.dept-media {
    border-top: 3px solid #ff7b72;
}

/* 运营部：绿 */
.member.dept-ops {
    border-top: 3px solid #3fb950;
}

.member.dept-tech:hover {
    box-shadow: 0 10px 30px rgba(88,166,255,0.25);
}

.member.dept-media:hover {
    box-shadow: 0 10px 30px rgba(255,123,114,0.25);
}

.member.dept-ops:hover {
    box-shadow: 0 10px 30px rgba(63,185,80,0.25);
}