/* 全局样式 */
:root {
    --primary-color: #b2e0f4;
    --text-color: #000000;
    --footer-color: DimGrey;
    --footer-hover: gray;
    --container-bg: rgba(255, 255, 255, 0.6);
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, "Microsoft YaHei", sans-serif;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background-image 0.5s ease-in-out;
}

/* 手机端背景图片 */
@media (max-width: 767px) {
    body {
        background-image: url('https://www.eirlys.net/image/mbg.jpg');
    }
}

/* 平板及桌面端背景图片 */
@media (min-width: 768px) {
    body {
        background-image: url('https://www.eirlys.net/image/bg.jpg');
    }
}

/* 容器样式 */
.container {
    background-color: var(--container-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 头像样式 */
.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid white;
}

/* 标题样式 */
h1 {
    font-size: 1.5rem;
    margin: 10px 0;
    color: var(--text-color);
}

/* 段落样式 */
p {
    font-size: 1rem;
    margin: 10px 0;
    color: #555;
}

/* 导航样式 */
.links {
    margin: 25px 0;
}

.navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navigation li {
    display: inline-block;
}

.navigation a {
    color: var(--text-color);
    opacity: 0.8;
    padding: 10px 20px;
    border: 1px solid var(--text-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.navigation a:hover {
    color: var(--text-color);
    background: var(--primary-color);
    border-color: var(--primary-color);
    opacity: 1;
    transform: translateY(-2px);
}

/* 页脚样式 */
footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

footer a {
    color: var(--footer-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--footer-hover);
}

footer p {
    margin-top: 10px;
    font-size: 0.8rem;
}

/* 减少运动偏好用户的动画 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
