:root {
    --bg-dark: #0f1115;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 氛围感高斯模糊背景光晕 */
.ambient-background {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 10s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px; height: 400px;
    background: #001eaa; /* 专属深蓝 */
    top: -100px; left: -100px;
}

.blob-2 {
    width: 300px; height: 300px;
    background: #FF6B6B;
    bottom: -50px; right: 10vw;
    animation-delay: -5s;
}

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

/* 布局容器 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* 头部 Header */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.welcome-text {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 10px;
    /* 这里可以通过 CSS 配合 SVG 打造 Apple hello 的连笔效果 */
    font-family: 'Brush Script MT', cursive; 
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* 便当盒网格 (Bento Grid) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 20px;
}

/* 多彩色块卡片 */
.bento-card {
    text-decoration: none;
    color: var(--text-main);
    border-radius: 28px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    /* border: 1px solid rgba(255, 255, 255, 0.1);*/
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    /* 配合背景光晕的毛玻璃效果 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.bento-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-content .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 15px;
    opacity: 0.8;
}

.card-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

/* 尺寸控制 (紧凑感的核心) */
.size-large {
    grid-column: span 2;
    grid-row: span 2;
}

.size-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.size-small {
    grid-column: span 1;
    grid-row: span 1;
}

/* 响应式调整 (针对移动端自适应显示) */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }
    .size-large {
        grid-column: span 2;
    }
    .welcome-text {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
    }
    .bento-card {
        min-height: 200px;
    }
}