/* 动漫风格重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Comfortaa', sans-serif;
    background: linear-gradient(135deg, 
        #ffeaa7 0%, 
        #fab1a0 25%, 
        #fd79a8 50%, 
        #e17055 75%, 
        #a29bfe 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 可爱背景装饰 */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    font-size: 1.5rem;
    animation: floatAround 8s ease-in-out infinite;
    opacity: 0.7;
}

.shape-1 { top: 10%; left: 10%; animation-delay: 0s; }
.shape-2 { top: 20%; right: 15%; animation-delay: 1s; }
.shape-3 { top: 60%; left: 5%; animation-delay: 2s; }
.shape-4 { top: 70%; right: 10%; animation-delay: 3s; }
.shape-5 { top: 30%; left: 80%; animation-delay: 4s; }
.shape-6 { top: 80%; left: 70%; animation-delay: 5s; }
.shape-7 { top: 50%; right: 5%; animation-delay: 6s; }
.shape-8 { top: 15%; left: 60%; animation-delay: 7s; }

.gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    animation: orbFloat 6s ease-in-out infinite;
}

.orb-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: -75px;
    animation-delay: 2s;
}

.orb-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 萌系头部 */
.header {
    text-align: center;
    margin-bottom: 60px;
    animation: bounceInDown 1.2s ease-out;
}

.logo-wrapper {
    margin-bottom: 30px;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 192, 203, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.2);
    animation: gentleBounce 3s ease-in-out infinite;
    transition: all 0.3s ease;
    object-fit: cover;
    position: relative;
    z-index: 10;
    display: block;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 1),
        0 0 60px rgba(255, 192, 203, 0.8),
        0 15px 40px rgba(0, 0, 0, 0.3);
}

.logo-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 3px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff9a9e, #fecfef, #fecfef, #ff9a9e);
    background-clip: padding-box;
    animation: ringRotate 4s linear infinite;
    z-index: 5;
}

.sparkles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
    z-index: 8;
}

.sparkle {
    position: absolute;
    font-size: 1.2rem;
    animation: sparkleFloat 2s ease-in-out infinite;
}

.sparkle:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 0.7s;
}

.sparkle:nth-child(3) {
    bottom: 10%;
    left: 30%;
    animation-delay: 1.4s;
}

/* 标题样式 */
.title-section {
    margin-bottom: 40px;
}

.main-title {
    margin-bottom: 15px;
    font-size: 3rem;
    font-weight: 900;
}

.title-char {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowText 3s ease-in-out infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title-char:nth-child(odd) {
    animation-delay: 0.1s;
}

.title-char:nth-child(even) {
    animation-delay: 0.2s;
}

.subtitle {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.subtitle-emoji {
    display: inline-block;
    animation: wiggle 2s ease-in-out infinite;
    margin: 0 8px;
}

/* 导航区域 */
.nav-section {
    margin-bottom: 60px;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* 萌系导航卡片 */
.nav-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.7) 100%);
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(255, 255, 255, 0.5);
    animation: cardAppear 0.8s ease-out;
}

.nav-card:nth-child(1) { animation-delay: 0.1s; }
.nav-card:nth-child(2) { animation-delay: 0.2s; }
.nav-card:nth-child(3) { animation-delay: 0.3s; }
.nav-card:nth-child(4) { animation-delay: 0.4s; }
.nav-card:nth-child(5) { animation-delay: 0.5s; }
.nav-card:nth-child(6) { animation-delay: 0.6s; }

.nav-card:hover {
    transform: translateY(-15px) scale(1.05);
    border-color: #ff9a9e;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(255, 154, 158, 0.6);
}

.nav-card:hover .card-shine {
    opacity: 1;
    transform: translateX(100px);
}

.nav-card:hover .heart {
    opacity: 1;
    transform: scale(1.2) rotate(15deg);
}

.nav-card:hover .card-icon {
    transform: scale(1.2) rotate(10deg);
}

.card-decoration {
    position: relative;
    margin-bottom: 20px;
}

.card-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    animation: iconBounce 2s ease-in-out infinite;
}

.icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, rgba(255, 192, 203, 0.3), rgba(255, 182, 193, 0.3));
    border-radius: 50%;
    z-index: -1;
    animation: iconBgPulse 3s ease-in-out infinite;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2d3436;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-desc {
    color: #636e72;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

.card-shine {
    position: absolute;
    top: 0;
    left: -100px;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.8), 
        transparent);
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
}

.heart {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* 萌系底部 */
.footer {
    text-align: center;
    padding: 30px 0;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

.footer-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.footer-emoji {
    font-size: 1.5rem;
    margin: 0 15px;
    animation: rotate 3s linear infinite;
}

.footer-text {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.footer-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* 动画定义 */
@keyframes floatAround {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-30px) translateX(20px); }
    66% { transform: translateY(20px) translateX(-20px); }
}

@keyframes bounceInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -200px, 0);
    }
    60% {
        opacity: 1;
        transform: translate3d(0, 25px, 0);
    }
    75% {
        transform: translate3d(0, -10px, 0);
    }
    90% {
        transform: translate3d(0, 5px, 0);
    }
    to {
        transform: none;
    }
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes sparkleFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
        opacity: 0.7; 
    }
    50% { 
        transform: translateY(-10px) scale(1.2); 
        opacity: 1; 
    }
}

@keyframes rainbowText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg) scale(1.1); }
    75% { transform: rotate(-5deg) scale(1.1); }
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

@keyframes iconBgPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 0.3; 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1); 
        opacity: 0.6; 
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .nav-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-card {
        padding: 25px 20px;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .nav-card {
        padding: 20px 15px;
    }
    
    .card-icon {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #fecfef, #ff9a9e);
} 