/* ============================================================
 * 入口导航页 —— 欢迎访问 样式
 * 背景图由 JS 设置（cover / fixed），本文件只管排版和外观
 * ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-color: #14161f;   /* 背景图未加载时的兜底色 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #fff;
}

a { text-decoration: none; color: inherit; }

/* 半透明遮罩，保证文字可读（背景图太花时依然清晰） */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 20, 0.35);
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 56px 20px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== 粒子背景 ===== */
.particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.particle {
    position: absolute;
    bottom: -80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(1px);
    animation: floatUp linear infinite;
}
@keyframes floatUp {
    0%   { transform: translateY(0); opacity: 0; }
    10%  { opacity: 0.7; }
    90%  { opacity: 0.5; }
    100% { transform: translateY(-110vh); opacity: 0; }
}

/* ===== 头像 ===== */
.avatar-wrapper {
    position: relative;
    margin-bottom: 22px;
}
.avatar-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ff6b9d, #38bdf8);
    filter: blur(10px);
    opacity: 0.75;
    animation: ringPulse 3.2s ease-in-out infinite;
}
@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%      { transform: scale(1.08); opacity: 0.9; }
}
.avatar {
    position: relative;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
    background: #222;
}

/* ===== 标题 ===== */
.title-area { text-align: center; margin-bottom: 32px; }
.site-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.site-subtitle {
    margin-top: 8px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* ===== 链接卡片 ===== */
.links-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.link-card {
    --card-color: #667eea;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform .25s, box-shadow .25s, background .25s;
    opacity: 0;
    animation: cardIn .6s ease forwards;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.link-card:hover {
    transform: translateY(-3px) scale(1.01);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}
.link-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.link-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.link-info { flex: 1; min-width: 0; }
.link-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.link-arrow {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.75);
    flex-shrink: 0;
}

/* ===== 页脚 ===== */
.footer {
    margin-top: 36px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}
.footer a { color: rgba(255, 255, 255, 0.8); text-decoration: underline; }

/* ===== 响应式 ===== */
@media (max-width: 480px) {
    .container { padding: 40px 16px 36px; }
    .avatar { width: 92px; height: 92px; }
    .site-title { font-size: 25px; }
    .link-card { padding: 12px 14px; }
    .link-icon { width: 40px; height: 40px; }
}
