:root {
    --white: #fff;
    --name-color: #2a40a1;
    --link-color-1: #f8f4d8;
    --link-color-2: #e6eef7;
    --link-color-3: #f0d9d9;
    --link-color-4: #e8d5f5;
    
    /* 新增玻璃效果变量 */
    --glass-bg: rgba(233, 237, 245, 0.85);
    --glass-border: 1px solid rgba(100, 180, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    --glass-backdrop: blur(12px);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式 */
body {
    font-family: "SimHei", "黑体", sans-serif;
    font-weight: bold;
    color: #000;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #e9edf5, #d0d8e9);
    padding: 0;
    justify-content: center;
}

/* 玻璃效果通用类 */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

/* 主容器 */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}

/* 名字样式 */
.name-container {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-bottom: 10px;
    text-align: right;
    z-index: 100;
    font-family: "Impact", Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: 100;
    font-style: italic;
    color: #ebecf0;
    text-shadow: 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 0 0 20px #bec8e4, 20px 20px 12px #bec8e4;
    letter-spacing: 5px;
    pointer-events: none;
    font-size: 2em;
    line-height: 0.8;
    padding-right: 20px;
    box-sizing: border-box;
}

@keyframes nameGlow {
    0% { text-shadow: 0 0 20px rgba(100, 150, 255, 0.4), 0 0 30px rgba(100, 150, 255, 0.2); }
    100% { text-shadow: 0 0 30px rgba(100, 150, 255, 0.6), 0 0 40px rgba(100, 150, 255, 0.3); }
}

/* 内容容器 */
.content-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 整体卡片 */
.profile-card {
    @extend .glass-effect;
    padding: 40px 30px;
    position: relative;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    padding-top: 60px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* 头像样式 */
.avatar {
    width: 220px;
    height: 220px;
    border-radius: 55px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: 2;
    margin-right: 30px;
    position: relative;
    top: -150px;
    margin-bottom: -50px;
}

.avatar:hover {
    transform: rotate(360deg) scale(1.3);
}

/* 问候语 */
.greeting {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #2a40a1;
    font-family: "Brush Script MT", "Lucida Handwriting", "Segoe Script", cursive;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: skewX(-8deg);
    background: linear-gradient(45deg, #2a40a1, #5680e8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 15px;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1), 0 0 10px rgba(100, 150, 255, 0.4);
}

.greeting::before,
.greeting::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    animation: spin 4s linear infinite;
}

.greeting::before {
    left: -15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23ffcccc' d='M20,0 L25,15 L40,20 L25,25 L20,40 L15,25 L0,20 L15,15 Z'/%3E%3C/svg%3E");
}

.greeting::after {
    right: -15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath fill='%23cce5ff' d='M20,0 L25,15 L40,20 L25,25 L20,40 L15,25 L0,20 L15,15 Z'/%3E%3C/svg%3E");
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* 个性签名区域 */
.signature-container {
    flex: 1;
    min-width: 300px;
    position: relative;
    padding: 15px;
    margin-top: 20px;
}

/* 个性签名样式 */
.signature {
    font-style: italic;
    font-size: 1.8em;
    position: relative;
    padding-left: 25px;
    font-family: "Dancing Script", "Great Vibes", cursive;
    font-weight: 600;
    color: #2a40a1;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.signature:hover {
    transform: translateX(30px);
}

.signature::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 2px;
    width: 20px;
    background: linear-gradient(to right, #5680e8, transparent);
    transition: width 0.3s ease;
}

.signature:hover::before {
    width: 30px;
}

/* 时钟容器 */
.clock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

/* 时间显示样式 */
.time, .date {
    font-family: "Orbitron", "Rajdhani", monospace;
    font-weight: 700;
    letter-spacing: 3px;
    position: relative;
    padding-left: 25px;
    font-style: italic;
    transition: all 0.3s ease;
    color: #2a40a1;
}

.time {
    font-size: 2.5em;
}

.time::before, .date::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 2px;
    width: 20px;
    background: linear-gradient(to right, #5680e8, transparent);
    transition: width 0.3s ease;
}

.time:hover, .date:hover {
    transform: translateX(30px);
}

.time:hover::before, .date:hover::before {
    width: 30px;
}

.date {
    font-size: 1.8em;
    margin-top: 5px;
}

/* 链接区域 */
.links {
    @extend .glass-effect;
    padding: 25px;
    margin-top: 20px;
}

.links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 0;
}

.links li {
    flex: 0 0 auto;
}

.links a {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    gap: 12px;
    font-size: 1.2em;
    font-weight: bold;
    color: #2a40a1;
    transform: translateY(0);
}

/* 链接颜色 */
.links li:nth-child(1) a { background: linear-gradient(var(--link-color-1)); }
.links li:nth-child(2) a { background: linear-gradient(var(--link-color-2)); }
.links li:nth-child(3) a { background: linear-gradient(var(--link-color-3)); }
.links li:nth-child(4) a { background: linear-gradient(var(--link-color-4)); }

.links a:hover {
    transform: translateY(-7px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    filter: brightness(1.1);
}

.link-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

/* 页脚样式 */
.footer {
    width: 100%;
    padding: 15px 0;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
    background: rgba(233, 237, 245, 0.6);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(100, 180, 255, 0.2);
}

.footer .icp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer .icp img {
    width: 22px;
    height: 22px;
}

.footer .icp a {
    color: #2a40a1;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.footer .icp a:hover {
    color: #5680e8;
    text-shadow: 0 0 5px rgba(100, 150, 255, 0.5);
}

.icp {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.beian-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ================= 玻璃按钮样式 ================= */
.glass-buttons-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.glass-buttons-container .color {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.3; /* 增加透明度减弱效果 */
}

.glass-buttons-container .color:nth-child(1) {
    background: #2193b0;
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
}

.glass-buttons-container .color:nth-child(2) {
    background: #2193b0;
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 50px;
}

.glass-buttons-container .color:nth-child(3) {
    background: #2193b0;
    width: 150px;
    height: 150px;
    bottom: 20px;
    right: 50px;
}

.glass-buttons-container ul {
    position: relative;
    display: flex;
    z-index: 2;
    margin: 0;
    padding: 0;
}

.glass-buttons-container ul li {
    position: relative;
    list-style: none;
    margin: 8px;
}

.glass-buttons-container ul li a {
    position: relative;
    width: 70px;
    height: 70px;
    display: inline-flex;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 28px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.glass-buttons-container ul li a:hover {
    transform: translateY(-8px);
}

.glass-buttons-container ul li a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    transform: skewX(45deg) translateX(150px);
    transition: 0.5s;
}

.glass-buttons-container ul li a:hover::before {
    transform: skewX(45deg) translateX(-150px);
}

/* ====== 工具提示样式 ====== */
.tooltip-image {
    position: absolute;
    bottom: 100%;
    right: 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-align: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    width: 200px;
    margin-bottom: 15px;
    pointer-events: auto;
    max-width: 90vw;
}

.tooltip-image::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 20px;
    border-width: 10px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
}

.tooltip-image img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 8px;
}

.tooltip-image p {
    font-size: 14px;
    color: #2a40a1;
    font-weight: bold;
    margin: 0 0 8px 0;
}

/* 关闭按钮样式 */
.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #2a40a1;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* 激活状态显示工具提示 */
.glass-buttons-container li.active .tooltip-image {
    opacity: 1;
    visibility: visible;
    transform: translateY(-10px);
}

/* ================= 响应式设计 ================= */
@media (max-width: 1000px) {
    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 40px;
    }

    .avatar {
        margin: 0 auto 20px;
        top: -100px;
        margin-bottom: -80px;
    }

    .signature-container {
        padding: 15px;
        margin-bottom: 20px;
    }

    .signature::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .name-container {
        font-size: 2em;
        text-align: center;
        padding-right: 0;
    }

    .content-container {
        padding: 15px;
        width: 100%;
    }

    .avatar {
        width: 180px;
        height: 180px;
    }

    .greeting {
        font-size: 2em;
    }

    .signature {
        font-size: 1.6em;
    }

    .time {
        font-size: 2.2em;
    }

    .date {
        font-size: 1.6em;
    }

    .links a {
        padding: 12px 22px;
        font-size: 1.1em;
    }

    .icp {
        flex-direction: column;
        gap: 10px;
    }

    /* 玻璃按钮响应式 */
    .glass-buttons-container {
        bottom: 20px;
        right: 20px;
        z-index: 1000;
    }

    .glass-buttons-container ul li a {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .tooltip-image {
        max-width: 180px;
        right: 0;
        left: auto;
        &.active {
            opacity: 1;
            visibility: visible;
        }

    .tooltip-image::after {
        right: 20px;
        border-top-color: rgba(255, 255, 255, 0.95);
        top: 100%;
        transform: translateY(-1px);
    }

    .glass-buttons-container {
        right: 10px;
    }
}

@media (max-width: 480px) {
    body {
        justify-content: flex-start;
    }

    .main-container {
        padding: 10px 0;
    }

    .name-container {
        font-size: 1.8em;
        margin-top: 50px;
    }

    .profile-card {
        margin-top: 10px;
        padding-top: 40px;
    }

    .avatar {
        width: 120px;
        height: 120px;
        top: 0;
        margin-bottom: 20px;
        border-radius: 30px;
        border-width: 2px;
    }

    .time, .date {
        font-size: 1.2em;
        padding-left: 15px;
        display: none;
    }

    .links ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer {
        position: relative;
        margin-top: 20px;
    }
}
