:root {
    --primary-color: #ff71ce;
    --secondary-color: #01cdfe;
    --accent-color: #b967ff;
    --bg-color: #1a1a2e;
    --card-color: rgba(255, 255, 255, 0.05);
    --text-color: #ffffff;
    --glow-effect: 0 0 15px rgba(1, 205, 254, 0.7);
    --card-gradient: linear-gradient(135deg, rgba(255, 113, 206, 0.07), rgba(1, 205, 254, 0.07), rgba(185, 103, 255, 0.07));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 113, 206, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(1, 205, 254, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(185, 103, 255, 0.1) 0%, transparent 30%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    margin: 0;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--glow-effect);
    letter-spacing: 2px;
    font-weight: 800;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(1, 205, 254, 0.7);
    }
    50% {
        opacity: 0.8;
        text-shadow: 0 0 20px rgba(1, 205, 254, 0.9);
    }
}

.header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.navigation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    flex-grow: 1;
    padding: 1rem 0;
}

.nav-card {
    background: var(--card-gradient);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(1, 205, 254, 0.2);
}

.nav-card:hover::before {
    opacity: 1;
}

.nav-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: var(--glow-effect);
    transition: all 0.3s ease;
}

.nav-card:hover i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.nav-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.nav-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
}

.nav-card-url {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 0.8rem;
    word-break: break-all;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-card:hover .nav-card-url {
    opacity: 1;
    text-shadow: 0 0 5px rgba(1, 205, 254, 0.5);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-block;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-links li a:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--text-color);
}

.nav-links li a:hover::after {
    width: 100%;
}

.footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    padding: 1.5rem 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .navigation-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nav-card {
        padding: 1.2rem;
        min-height: 130px;
    }

    .nav-card i {
        font-size: 2.5rem;
    }

    .nav-card h2 {
        font-size: 1.3rem;
    }

    .nav-links li a {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.8rem;
    }

    .header {
        margin-bottom: 1.5rem;
    }

    .header h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .nav-card {
        padding: 1.2rem;
        min-height: 140px;
        margin-bottom: 1rem;
    }

    .nav-card i {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .nav-card h2 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .nav-links li a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .footer {
        font-size: 0.8rem;
        padding: 1rem 0;
    }
}

/* 额外的小屏幕优化 */
@media (max-width: 360px) {
    .header h1 {
        font-size: 1.6rem;
    }

    .nav-card {
        padding: 1rem;
        min-height: 130px;
    }

    .nav-card i {
        font-size: 2rem;
    }

    .nav-card h2 {
        font-size: 1.1rem;
    }
}

/* 动漫风格装饰元素 */
.decorative-element {
    position: fixed;
    opacity: 0.1;
    z-index: -1;
}

.decorative-element:nth-child(1) {
    top: 10%;
    left: 5%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    animation: float 8s ease-in-out infinite;
    filter: blur(40px);
}

.decorative-element:nth-child(2) {
    bottom: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--secondary-color), transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
    filter: blur(40px);
}

.decorative-element:nth-child(3) {
    top: 50%;
    right: 10%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-color), transparent 70%);
    animation: float 12s ease-in-out infinite;
    filter: blur(40px);
}

.decorative-element:nth-child(4) {
    bottom: 20%;
    left: 15%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    animation: float 15s ease-in-out infinite;
    filter: blur(40px);
}

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