/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    background: linear-gradient(135deg,
        #0c1445 0%,
        #1a237e 25%,
        #281259 50%,
        #1a1a40 75%,
        #0c1445 100%
    );
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    max-width: 800px;
    width: 100%;
    background-color: rgba(26, 35, 126, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 80px; /* 增加底部间距，避免与footer重叠 */
}

/* 头部样式 */
header {
    margin-bottom: 40px;
}

.site-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6),
                 0 0 30px rgba(160, 215, 255, 0.4),
                 0 0 45px rgba(160, 215, 255, 0.2);
    font-weight: 300;
    letter-spacing: 3px;
}

.greeting {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 0 0 15px rgba(180, 198, 239, 0.6);
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* 主要内容样式 */
.profile-card {
    background-color: rgba(26, 35, 126, 0.05);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.greeting {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 0 0 15px rgba(180, 198, 239, 0.6);
    letter-spacing: 0.5px;
    opacity: 0;
    animation: greetingFadeIn 1s ease-out forwards;
}

.wave {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

@keyframes greetingFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

.intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #d0deff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    font-weight: 300;
    letter-spacing: 0.5px;
    min-height: 2em;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    padding: 0 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.intro:hover {
    color: #ffffff;
    text-shadow: 0 0 25px rgba(160, 215, 255, 0.5);
    transform: scale(1.02);
}

.intro::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 加载状态样式 */
.intro[data-loading="true"] {
    position: relative;
}

.intro[data-loading="true"]::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: loading 0.8s linear infinite;
    opacity: 1;
}

@keyframes loading {
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

/* 禁用加载状态时的hover效果 */
.intro[data-loading="true"]:hover {
    transform: none;
    cursor: wait;
}

.intro[data-loading="true"]:hover::after {
    content: '';
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页脚样式 */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    z-index: 10;
    pointer-events: none; /* 使footer本身不影响点击 */
}

.icp {
    display: inline-block;
    pointer-events: auto; /* 恢复链接的点击效果 */
}

.icp a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    display: inline-block;
    line-height: 1.2;
}

.icp a:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* 动画效果 */
@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* 装饰元素 */
.container::before,
.container::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.4;
}

.container::before {
    background-color: #ffccf9;
    top: -100px;
    left: -100px;
}

.container::after {
    background-color: #c5f8ff;
    bottom: -100px;
    right: -100px;
}

/* 响应式设计 - 增强版 */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .greeting {
        font-size: 1.5rem;
    }
    
    .intro {
        font-size: 1rem;
    }
    
    .profile-card {
        padding: 25px;
    }
}

/* 小屏幕设备优化 */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 25px 15px;
        margin-bottom: 70px; /* 增加与footer的间距 */
        border-radius: 15px;
    }

    .site-title {
        font-size: 2rem;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }

    .greeting {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

    .intro {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 10px;
    }
    
    .intro::after {
        bottom: -18px;
        font-size: 0.7rem;
    }

    .profile-card {
        padding: 20px 15px;
        border-radius: 15px;
    }

    footer {
        padding: 12px 0;
    }

    .icp a {
        padding: 6px 12px;
        font-size: 0.8rem;
        border-radius: 15px;
    }
}

/* 超小屏幕设备优化 */
@media (max-width: 320px) {
    .container {
        margin-bottom: 65px;
        padding: 20px 12px;
    }

    .site-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .greeting {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    .wave {
        display: inline-block;
        animation: wave 2.5s infinite;
        transform-origin: 70% 70%;
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }

    .icp a {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .container::before,
    .container::after {
        width: 150px;
        height: 150px;
    }
}

/* 低高度设备优化 */
@media (max-height: 600px) {
    body {
        padding-top: 60px;
        padding-bottom: 60px;
        align-items: flex-start;
    }

    .container {
        margin-bottom: 70px;
    }
    
    header {
        margin-bottom: 20px;
    }
    
    .profile-card {
        margin-bottom: 20px;
    }
}

/* 确保在较小的高度设备上内容不会被遮挡 */
@media (max-height: 500px) {
    body {
        padding-top: 70px;
        min-height: 500px;
    }
}