/* ===== 银狼导航站 · 暗色赛博霓虹风 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    min-height: 100%;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #e2e0f0;
    background: linear-gradient(180deg, #0a0a1f 0%, #05041a 100%);
    position: relative;
    overflow-x: hidden;
    padding: 40px 20px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 三团光晕 */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}
body::before {
    top: -120px; left: -100px;
    width: 480px; height: 480px;
    background: rgba(167, 139, 250, 0.30); /* 紫 */
}
body::after {
    bottom: -150px; right: -100px;
    width: 520px; height: 520px;
    background: rgba(34, 211, 238, 0.22); /* 青 */
}
.glow-pink {
    position: fixed;
    top: 40%; right: -150px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: rgba(244, 114, 182, 0.20); /* 粉 */
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

/* 像素网格线 */
#bg-particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(167, 139, 250, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 139, 250, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
}

/* 让内容层叠在上方 */
header, main, footer { position: relative; z-index: 2; }

/* 标题 */
header { text-align: center; margin-bottom: 30px; }

h1 {
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #a78bfa, #22d3ee, #f472b6, #a78bfa);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shine 4s linear infinite;
}
@keyframes shine {
    0% { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}

.px-char {
    -webkit-text-fill-color: initial;
    color: #f472b6;
    font-size: 0.7em;
    animation: blink 1.4s steps(2, start) infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; text-shadow: 0 0 8px #f472b6; }
    50% { opacity: 0.2; text-shadow: none; }
}

/* 主区域 */
#main {
    width: 100%;
    max-width: 860px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

/* 分类 */
.category { min-width: 0; }

.cat-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #cdc6ff;
    padding-left: 14px;
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #a78bfa, #22d3ee, #f472b6) 1;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(167, 139, 250, 0.5);
}

/* 网址卡片 */
.link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #e8e6fa;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(167, 139, 250, 0.18);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* hover 上浮 + 渐变高光条 + 图标发光 */
.link-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a78bfa, #22d3ee, #f472b6);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.link-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 18px rgba(167, 139, 250, 0.25);
}
.link-card:hover::before { opacity: 1; }

.link-icon {
    font-size: 1.3rem;
    transition: text-shadow 0.25s ease, transform 0.25s ease;
}
.link-card:hover .link-icon {
    text-shadow: 0 0 14px #22d3ee;
    transform: scale(1.15);
}
.link-name { font-weight: 600; font-size: 1rem; }

footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #8a86a8;
}
footer b {
    color: #f472b6;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(244, 114, 182, 0.6);
}

/* 移动端：两列 */
@media (max-width: 420px) {
    #main { grid-template-columns: 1fr 1fr; gap: 14px; }
    h1 { font-size: 1.4rem; }
    .link-card { padding: 12px 10px; }
    .link-name { font-size: 0.9rem; }
}
