﻿/* ===== 重置样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== 全局字体设置 ===== */
body {
    /* 中英文混合字体优化 */
    font-family: 
        /* 英文字体 */
        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        /* 中文字体 */
        'PingFang SC', 'Microsoft YaHei', 'WenQuanYi Micro Hei',
        /* 备用字体 */
        'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 等宽字体 */
.name {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Courier New', Consolas, monospace;
    font-weight: 500;
    letter-spacing: 1px;
}

/* 清新字体用于正文 */
.slogan, .btn, .footer {
    font-weight: 300;
    line-height: 1.6;
}

/* ===== 背景设置 ===== */
body {
    min-height: 100vh;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)),
        url('../img/bg.webp') center/cover fixed no-repeat;
    position: relative;
}

/* ===== 主内容包装器 ===== */
.wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ===== 卡片样式 ===== */
.card {
    width: 420px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 50px 35px 45px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* ===== 头像 ===== */
.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 28px;
    border: 4px solid white;
    box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.15);
    background: url('../img/x.webp') center/cover no-repeat;
    background-color: #f0f0f0; /* 图片加载时的背景色 */
}


/* ===== 名字 ===== */
.name {
    font-size: 1.8rem;
    margin: 0 0 12px;
    color: #2d3e50;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ===== 分割线 ===== */
.divider {
    width: 180px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        #b0c4de 20%, 
        #b0c4de 80%, 
        transparent);
    margin: 0 auto 25px;
}

/* ===== 标语 ===== */
.slogan {
    color: #5a6c7e;
    margin: 0 0 35px;
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* ===== 按钮组 ===== */
.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    color: #6b7b8f;
    text-decoration: none;
    padding: 12px 40px;
    transition: all 0.3s ease;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(176, 196, 222, 0.3);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn:hover {
    color: #89cff0;
    background: white;
    border-color: #89cff0;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -8px rgba(137, 207, 240, 0.4);
}

/* ===== 页脚 ===== */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    padding: 1px 25px;
    font-size: 0.95rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(3px);
}

.footer p {
    margin: 3px 0;
    line-height: 1.6;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
}

.footer a:hover {
    border-bottom-color: #89cff0;
    color: #89cff0;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .card {
        width: 90%;
        max-width: 380px;
        padding: 40px 25px 35px;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 22px;
    }
    
    .name {
        font-size: 1.6rem;
    }
    
    .divider {
        width: 140px;
        margin-bottom: 20px;
    }
    
    .slogan {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .btn {
        padding: 10px 35px;
    }
    
    .footer {
        padding: 20px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 35px 20px 30px;
    }
    
    .avatar {
        width: 90px;
        height: 90px;
        margin-bottom: 20px;
    }
    
    .name {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .divider {
        width: 120px;
        margin-bottom: 18px;
    }
    
    .slogan {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .btn {
        padding: 8px 25px;
        font-size: 0.95rem;
    }
    
    .footer {
        padding: 15px 10px;
        font-size: 0.85rem;
    }
}