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

/* 浅蓝色渐变背景 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #e0f7ff 0%, #b8e6ff 25%, #a8d8ff 50%, #c5e8ff 75%, #e0f7ff 100%);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    color: #2c3e50;
}

/* 背景渐变动画 */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 粒子背景 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* 主容器 */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 40px;
    max-width: 600px;
    width: 100%;
    z-index: 1;
    position: relative;
}
/* 标签 */
.tags {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.tag {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 14px;
    color: #4a90c2;
    border: 1px solid rgba(79, 172, 254, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.2);
}

/* 正文区域 */
.content-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.15);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.intro-text {
    font-size: 16px;
    line-height: 1.8;
    color: #3d5a80;
    text-align: center;
    margin-bottom: 20px;
}

.custom-area {
    padding: 20px;
    background: rgba(79, 172, 254, 0.08);
    border-radius: 12px;
    border: 2px dashed rgba(79, 172, 254, 0.3);
    text-align: center;
}

.custom-area p {
    color: #6b9ac4;
    font-size: 14px;
}

/* 邮箱区域 */
.email-section {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.email-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 36px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(79, 172, 254, 0.4);
    position: relative;
    overflow: hidden;
}

.email-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.email-btn:hover::before {
    left: 100%;
}

.email-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(79, 172, 254, 0.5);
}

.email-btn:active {
    transform: translateY(-1px);
}

.email-btn i {
    font-size: 20px;
}

.email-text {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.copy-hint {
    font-size: 12px;
    opacity: 0.85;
}

/* 复制成功提示 */
.copy-toast {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(46, 204, 113, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.3);
    white-space: nowrap;
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.copy-toast i {
    font-size: 16px;
}

/* 底部 */
.footer {
    width: 100%;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 1;
    position: relative;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4facfe;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 172, 254, 0.2);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.1);
}

.social-btn:hover {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
    border-color: transparent;
}

.copyright {
    text-align: center;
    font-size: 13px;
    color: #7ba3c7;
}

/* 响应式适配 */
@media (max-width: 480px) {
    .main-container {
        padding: 40px 16px 30px;
    }
    
    .avatar-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .avatar-text {
        font-size: 48px;
    }
    
    .name {
        font-size: 26px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .email-btn {
        padding: 15px 28px;
    }
    
    .email-text {
        font-size: 13px;
    }
    
    .social-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* 装饰性浮动元素 */
.floating-decoration {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 0;
}

.decoration-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.decoration-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: -75px;
    animation: float 10s ease-in-out infinite 1s;
}

.decoration-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 10%;
    animation: float 7s ease-in-out infinite 0.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}
