/* 卡片链接无下划线 */
.body, body, html {
    font-family: 'SimSun', '宋体', serif !important;
}
.projects-grid a.card {
    text-decoration: none !important;
    color: inherit;
}

/* 去除卡片链接下划线 */
.projects-grid a.project {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.projects-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
}

.project {
    background: linear-gradient(135deg, #e3f2fd 60%, #fff 100%);
    border: 2px solid #1976d2;
    box-shadow: 4px 4px 0 #1976d2;
    border-radius: 10px;
    padding: 20px 18px;
    width: 240px;
    min-width: 180px;
    max-width: 90vw;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project:hover {
    background: linear-gradient(135deg, #90caf9 80%, #fff 100%);
    box-shadow: 8px 8px 0 #1976d2;
    transform: translateY(-4px) scale(1.03);
}

.project h3 {
    font-size: 1.2rem;
    margin: 0 0 8px 0;
    color: #111;
    text-shadow: 1px 1px #aaa;
    letter-spacing: 1px;
}

.project p {
    font-size: 1rem;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .projects-grid {
        gap: 12px;
    }

    .project {
        width: 100%;
        min-width: unset;
        padding: 12px 8px;
    }

    .project h3 {
        font-size: 1rem;
    }

    .project p {
        font-size: 0.95rem;
    }
}

/* 引入汉仪像素11px U 字体（需自行下载字体文件并放在同目录下） */
@font-face {
    font-family: 'HYPixel11pxU';
    src: url('HYPixel11pxU.woff2') format('woff2');
    font-display: swap;
}

body {
    margin: 0;
    font-family: 'HYPixel11pxU', 'VT323', monospace, 'Courier New', monospace;
    background: #fff;
    color: #111;
    image-rendering: pixelated;
    font-size: 16px;
    line-height: 1.7;
}

header {
    background: #bd020b;
    color: #fff;
    padding: 20px 0 10px 0;
    text-align: center;
    border-bottom: 4px solid #111;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px #111;
    margin: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 2px dashed #fff;
    padding: 2px 8px;
    transition: background 0.2s, color 0.2s;
    border-radius: 4px;
}

nav a:active,
nav a:focus {
    outline: 2px dotted #111;
    background: #fff;
    color: #000;
}

nav a:hover {
    background: #fff;
    color: #000;
}

main {
    max-width: 800px;
    margin: 24px auto;
    padding: 0 12px;
}

section {
    margin-bottom: 32px;
    border: 2px solid #000;
    padding: 20px;
    background: #fff;
    box-shadow: 4px 4px 0 #000;
    border-radius: 12px;
    transition: box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

section:hover {
    background: #fff;
    box-shadow: 8px 8px 0 #000;
    border-color: #000;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    text-shadow: 1px 1px #aaa;
}

.team-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.member {
    text-align: center;
    min-width: 90px;
}

.avatar {
    width: 64px;
    height: 64px;
    border: 4px solid #111;
    margin: 0 auto 8px auto;
    image-rendering: pixelated;
    border-radius: 8px;
    background: repeating-linear-gradient(45deg,
            #000,
            #000 8px,
            #fff 8px,
            #fff 16px);
    position: relative;
    overflow: hidden;
}

.avatar.img-ming {
    background: none;
    background-color: #fff;
}

footer {
    background: #bd020b;
    color: #fff;
    text-align: center;
    padding: 12px 0;
    border-top: 4px solid #111;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* 移动端优化 */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    main {
        padding: 0 2px;
    }
    .team-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    .member {
        flex: 0 1 30%;
        min-width: unset;
        box-sizing: border-box;
    }

    section {
        padding: 8px;
        margin-bottom: 18px;
    }

    nav ul {
        gap: 10px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    nav a {
        font-size: 1rem;
        padding: 4px 12px;
        margin-bottom: 2px;
    }

    .avatar {
        width: 48px;
        height: 48px;
        border-width: 3px;
    }

    .member {
        min-width: unset;
    }

    footer {
        font-size: 0.9rem;
        padding: 8px 0;
    }
}

/* 禁用移动端或竖屏时卡片缩放效果，仅桌面或横屏启用 */
@media (max-width: 600px), (orientation: portrait) {
    .project:hover {
        transform: none !important;
    }
}