:root {
    --primary-color: #FF5A5F;     /* 活泼的珊瑚红 */
    --secondary-color: #FFC000;   /* 明亮的黄色 */
    --tertiary-color: #00D2D3;    /* 清新的青色 */
    --accent-color: #9B59B6;      /* 神秘的紫色 */
    --bg-main: #F4F7F6;           /* 温暖的灰白底色 */
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --card-bg: #FFFFFF;
    
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 4px var(--tertiary-color);
    --shadow-btn: 0 4px 0px rgba(0, 0, 0, 0.15);
    
    --font-heading: 'Fredoka One', cursive;
    --font-body: 'Nunito', sans-serif;
    
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 动态背景装饰 */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite ease-in-out;
}

.b1 { width: 300px; height: 300px; background: radial-gradient(circle, #FFEAA7, transparent); top: -10%; left: -5%; animation-duration: 20s; }
.b2 { width: 400px; height: 400px; background: radial-gradient(circle, #E0F7FA, transparent); bottom: 10%; right: -10%; animation-duration: 25s; animation-delay: -5s; }
.b3 { width: 200px; height: 200px; background: radial-gradient(circle, #FCE4EC, transparent); top: 40%; left: 20%; animation-duration: 18s; animation-delay: -2s; }
.b4 { width: 150px; height: 150px; background: radial-gradient(circle, #E8F5E9, transparent); bottom: 5%; left: 10%; animation-duration: 22s; animation-delay: -8s; }
.b5 { width: 250px; height: 250px; background: radial-gradient(circle, #F3E5F5, transparent); top: 15%; right: 15%; animation-duration: 19s; animation-delay: -10s; }

.pixel-star {
    position: absolute;
    font-size: 2rem;
    animation: twinkle 3s infinite alternate;
}
.s1 { top: 20%; left: 10%; animation-delay: 0s; }
.s2 { top: 30%; right: 20%; animation-delay: 1s; font-size: 1.5rem; }
.s3 { bottom: 40%; right: 10%; animation-delay: 2s; font-size: 2.5rem; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes twinkle {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

@keyframes bounce-inf {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.bounce {
    display: inline-block;
    animation: bounce-inf 2s infinite ease-in-out;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    padding: 5rem 2rem 3rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.logo-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0px var(--secondary-color), 
                 6px 6px 0px rgba(0,0,0,0.1);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 2.5rem;
    background: #fff;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 99px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 2px dashed var(--tertiary-color);
}

/* Toolbar & Search */
.toolbar {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.search-box {
    width: 100%;
    max-width: 500px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    font-size: 1.2rem;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    background-color: var(--card-bg);
    border: 3px solid transparent;
    border-radius: 99px;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-bounce);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.search-box input:focus {
    border-color: var(--tertiary-color);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 210, 211, 0.2);
}

.search-box input::placeholder {
    color: #A0AAB5;
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 4rem;
    width: 100%;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-dark);
}

.badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    box-shadow: 0 2px 0 rgba(0,0,0,0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); background-color: #ff383f; }
    100% { transform: scale(1); }
}

/* Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Card - Game Console Style */
.project-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    position: relative;
    border: 3px solid #E8ECEF;
    transform-origin: center bottom;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--tertiary-color);
    z-index: 2;
}

.card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border-bottom: 2px dashed #E8ECEF;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.card-icon {
    font-size: 3rem;
    background: white;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 2px solid #E8ECEF;
    transition: var(--transition-bounce);
    z-index: 1;
}

.project-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    border-color: var(--secondary-color);
}

.card-title-group {
    flex: 1;
    z-index: 1;
}

.project-id {
    font-size: 0.8rem;
    font-family: var(--font-heading);
    color: var(--accent-color);
    background: rgba(155, 89, 182, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    margin-bottom: 0.2rem;
    display: inline-block;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: white;
}

.project-desc {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
}

.btn-visit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background-color: var(--tertiary-color);
    color: white;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition-bounce);
    width: 100%;
    border: none;
    box-shadow: 0 6px 0px #00B4B5;
    position: relative;
    top: 0;
    cursor: pointer;
    letter-spacing: 1px;
}

.project-card:hover .btn-visit {
    background-color: var(--primary-color);
    box-shadow: 0 6px 0px #D94D52;
}

.btn-visit:active {
    top: 6px;
    box-shadow: 0 0px 0px #00B4B5 !important;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    background-color: white;
    border-top: 3px dashed #E8ECEF;
    position: relative;
    z-index: 10;
}

.footer-content p {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-decor {
    font-size: 1.5rem;
    letter-spacing: 1rem;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 3px dashed #E8ECEF;
}

.empty-state h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.empty-state p {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .projects-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero { padding: 3rem 1rem 2rem; }
}