@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

:root {
    --primary-color: #4c63d2;
    --secondary-color: #5b3a87;
    --accent-color: #d08def;
    --text-color: #fff;
    --card-bg: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(102, 126, 234, 0.4);
    --back-bg: rgba(118, 75, 162, 0.4);
    --success-bg: rgba(76, 175, 80, 0.3);
    --error-bg: rgba(244, 67, 54, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-color);
    overflow: hidden;
    position: relative;
}

/* 点状纹理背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 8px 8px;
    background-position: 10px 10px;
    pointer-events: none;
    z-index: 0;
}

/* 动态渐变背景 */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.gradient-overlay {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 60%);
    opacity: 0.3;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.container {
    text-align: center;
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    width: 80%;
    max-width: 450px;
    margin: 20px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.container:hover {
    transform: translateY(-5px);
}

.header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

h1 {
    font-size: 2rem;
    margin: 15px 0 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.description {
    margin: 10px 0 20px;
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 300px;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.links a {
    text-decoration: none;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease-in-out;
    display: block;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    transition: left 0.5s;
}

.links a:hover::before {
    left: 100%;
}

.links a:hover {
    background: var(--hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 99, 210, 0.4);
    border: 1px solid rgba(102, 126, 234, 0.5);
}

.links a.back-btn {
    background: var(--back-bg);
}

.links a.back-btn:hover {
    background: rgba(118, 75, 162, 0.6);
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.4);
    border: 1px solid rgba(118, 75, 162, 0.7);
}

.links a.project-btn {
    background: var(--success-bg);
}

.links a.project-btn:hover {
    background: rgba(76, 175, 80, 0.5);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    border: 1px solid rgba(76, 175, 80, 0.7);
}

.links a.error-btn {
    background: var(--error-bg);
}

.footer {
    margin-top: 30px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.social-icons {
    position: absolute;
    top: 25px;
    right: 35px;
    z-index: 3;
}

.social-icons a {
    margin-left: 20px;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(240, 147, 251, 0.5);
}

.social-icons-mobile {
    display: none;
    text-align: center;
    margin: 10px 0 0;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icons-mobile a {
    margin: 0 15px;
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 24px;
    text-align: center;
}

.social-icons-mobile a:hover {
    color: var(--accent-color);
    background: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
}

.container::-webkit-scrollbar {
    display: none;
}

.container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
        align-items: flex-start;
        padding: 20px 0;
    }

    h1 {
        font-size: 1.8rem;
    }  

    .header {
        margin-bottom: 15px;
    }

    .logo-container {
        margin-bottom: 10px;
    }
    
    .social-icons {
        display: none;
    }

    .social-icons-mobile {
        display: block;
    }

    .container {
        width: 90%;
        max-height: 90vh;
        padding: 30px 20px;
        margin: 10px auto;
    } 

    .logo {
        width: 70px;
        height: 70px;
    }  

    .links a {
        padding: 10px 15px;
        font-size: 1rem;
    }
}