/* ===== 全局 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: #0b0b1a;
    color: #d0d0ff;
    font-family: "Trebuchet MS", "Comic Sans MS", Verdana, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
}
/* 扫描线 CRT */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.08) 0px,
        rgba(0,0,0,0.08) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 9999;
}
a { color: #ff00ff; text-decoration: underline; }
a:hover { color: #00ffcc; background: #330033; }

/* ===== 背景粒子 ===== */
#bgParticles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ===== 像素化分割线 ===== */
hr {
    border: 0;
    height: 4px;
    background: repeating-linear-gradient(90deg, #ff00ff 0px, #ff00ff 8px, #00ffff 8px, #00ffff 16px);
    margin: 20px 0;
}

/* ===== 容器 ===== */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== 顶部横幅（Banner） ===== */
.banner {
    width: 100%;
    height: 260px;
    background: #0b0b1a url('../assets/banner.jpg') no-repeat center/cover;
    position: relative;
    border: 4px ridge #ff00ff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* LOGO 图片 */
.logo-img {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain;
}

/* ===== 导航 ===== */
nav {
    background: #1a0033;
    padding: 8px 0;
    border-bottom: 4px solid #ff00ff;
    margin-bottom: 20px;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
nav ul li a {
    color: #ffff00;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    padding: 4px 14px;
    border: 2px outset #c0c0c0;
    background: #2a0050;
    box-shadow: 0 0 8px rgba(255,0,255,0.3);
}
nav ul li a:hover {
    background: #ff00ff;
    color: #fff;
    border-style: inset;
    box-shadow: 0 0 20px #ff00ff;
}

/* ===== 通用区块 ===== */
section {
    background: rgba(20, 0, 40, 0.75);
    border: 3px groove #808080;
    padding: 20px;
    margin-bottom: 25px;
    backdrop-filter: blur(2px);
}
.section-title {
    font-family: "Impact", fantasy;
    font-size: 28px;
    color: #ff00ff;
    text-align: center;
    margin-bottom: 20px;
    background: #000;
    display: inline-block;
    padding: 4px 30px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #ff00ff;
}
.section-title-wrapper {
    text-align: center;
}

/* ===== 社团介绍 ===== */
.intro-text {
    font-size: 16px;
    color: #d0d0ff;
    background: rgba(0,0,0,0.4);
    padding: 15px;
    border: 2px dashed #ff00ff;
}
.intro-text strong {
    color: #ff00ff;
    text-shadow: 0 0 8px #ff00ff;
}

/* ===== 成员卡片 ===== */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
}
.member-card {
    background: rgba(0,0,0,0.5);
    border: 3px ridge #ff00ff;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
}
.member-card:hover {
    border-color: #00ffcc;
    box-shadow: 0 0 25px rgba(0,255,204,0.3);
}
.member-card .avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    background: #1a0033;
    border: 3px double #00ffcc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.member-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.member-name {
    font-weight: bold;
    font-size: 16px;
    color: #ffff00;
    text-shadow: 0 0 6px #ff00ff;
}
.member-role {
    font-size: 14px;
    color: #00ffcc;
    margin: 4px 0;
}
.member-bio {
    font-size: 13px;
    color: #c0c0ff;
    margin: 8px 0;
    min-height: 42px;
}
.member-site a {
    font-size: 12px;
    color: #ff00ff;
}

/* ===== 代表作品（横向滚动） ===== */
.works-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.works-track {
    display: flex;
    width: max-content;
    animation: scrollWorks 20s linear infinite;
}
.works-track.paused {
    animation-play-state: paused;
}
@keyframes scrollWorks {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.work-card {
    display: block;
    position: relative;
    width: 230px;
    flex-shrink: 0;
    margin-right: 30px;
    background: #0a0020;
    border: 3px solid #ff00ff;
    padding: 12px;
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}
.work-card:hover {
    border-color: #00ffcc;
    box-shadow: 0 0 30px rgba(0,255,204,0.4);
}
.work-card:focus-visible {
    outline: 2px solid #00ffcc;
    outline-offset: 2px;
    border-color: #00ffcc;
}
.work-play {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2px;
    border: 2px solid #00ffcc;
    border-radius: 50%;
    background: rgba(10, 0, 32, 0.85);
    color: #00ffcc;
    font-size: 13px;
    line-height: 1;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.35);
    transition: 0.3s;
}
.work-card:hover .work-play {
    background: #00ffcc;
    color: #0a0020;
}
.work-card .cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #1a0033;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #00ffcc;
}
.work-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.work-title {
    font-weight: bold;
    color: #ffff00;
    margin: 8px 0 4px;
    font-size: 17px;
    min-height: 3em;
    text-shadow: 0 0 5px #ff00ff;
}
.work-desc {
    color: #c0c0ff;
    font-size: 12px;
}
.work-tag {
    display: inline-block;
    background: #ff00ff;
    color: #fff;
    padding: 2px 10px;
    font-size: 10px;
    margin-top: 6px;
    border: 1px solid #fff;
}

/* ===== 博客列表 ===== */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.blog-empty {
    color: #8888cc;
    font-size: 14px;
}
.blog-more {
    text-align: center;
    margin-top: 4px;
}
.blog-item {
    background: rgba(0,0,0,0.4);
    border: 2px solid #ff00ff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.blog-item h3 {
    font-size: 18px;
    color: #ffff00;
    text-shadow: 0 0 5px #ff00ff;
}
.blog-meta {
    font-size: 12px;
    color: #8888cc;
}
.blog-link {
    background: #008000;
    color: #fff;
    padding: 4px 16px;
    text-decoration: none;
    border: 2px outset #00ff00;
    font-weight: bold;
}
.blog-link:hover {
    background: #ff00ff;
    border-color: #ff00ff;
    border-style: inset;
}

/* ===== 外部链接 ===== */
.links-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.external-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a0033;
    color: #ffff00;
    padding: 10px 28px;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    border: 3px outset #c0c0c0;
    box-shadow: 0 0 12px rgba(255,0,255,0.3);
}
.external-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #ff00ff;
}
.external-link:hover {
    background: #ff00ff;
    color: #fff;
    border-style: inset;
    box-shadow: 0 0 30px #ff00ff;
}
.external-link:hover svg {
    color: #fff;
}

/* ===== 页脚 ===== */
footer {
    text-align: center;
    padding: 20px;
    background: #1a0033;
    color: #ffff00;
    border-top: 6px double #ff00ff;
    font-size: 14px;
}
footer .ascii {
    font-family: "Courier New", monospace;
    white-space: pre;
    color: #00ffcc;
    font-size: 12px;
    text-shadow: 0 0 6px #00ffcc;
}

/* ===== 响应式 ===== */
@media (max-width: 680px) {
    .banner { height: 170px; }
    nav ul { gap: 12px; }
    nav ul li a { font-size: 14px; padding: 2px 10px; }
    .section-title { font-size: 20px; }
    .work-card { width: 190px; }
}

/* ===== 文章详情页 ===== */
.post-content {
    background: rgba(20, 0, 40, 0.75);
    border: 3px groove #808080;
    padding: 30px;
    margin-top: 20px;
    min-height: 300px;
}

.post-title {
    font-family: "Impact", fantasy;
    font-size: 32px;
    color: #ffff00;
    text-shadow: 0 0 10px #ff00ff;
    margin-bottom: 10px;
}

.post-meta {
    color: #8888cc;
    font-size: 14px;
    margin-bottom: 25px;
    border-bottom: 1px solid #ff00ff;
    padding-bottom: 10px;
}

.post-body {
    color: #d0d0ff;
    line-height: 1.8;
    font-size: 16px;
}

.post-body h1,
.post-body h2,
.post-body h3 {
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
    margin: 20px 0 10px;
}

.post-body h1 { font-size: 26px; }
.post-body h2 { font-size: 22px; }
.post-body h3 { font-size: 18px; }

.post-body p {
    margin-bottom: 15px;
}

.post-body strong {
    color: #ffff00;
}

.post-body code {
    background: #1a0033;
    color: #00ffcc;
    padding: 2px 6px;
    border: 1px solid #00ffcc;
    font-size: 14px;
}

.post-body pre {
    background: #0a001a;
    border: 2px solid #ff00ff;
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
}

.post-body pre code {
    background: none;
    border: none;
    padding: 0;
    color: #00ffcc;
}

.post-body ul, .post-body ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

.post-body li {
    margin-bottom: 5px;
}

.post-body blockquote {
    border-left: 4px solid #ff00ff;
    padding-left: 15px;
    color: #aaaaff;
    margin: 15px 0;
    font-style: italic;
}

.post-body a {
    color: #00ffcc;
    text-decoration: underline;
}

.post-body a:hover {
    color: #ff00ff;
    background: #1a0033;
}

.post-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border: 2px solid #00ffcc;
}

.post-body table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 15px 0;
}

.post-body th,
.post-body td {
    border: 2px solid #00ffcc;
    padding: 6px 10px;
    text-align: left;
    overflow-wrap: anywhere;
}

.post-body th {
    background: #1a0033;
    color: #ffff00;
}

.loading {
    text-align: center;
    padding: 60px;
    font-size: 18px;
    color: #8888cc;
}