* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', 'Comic Sans MS', 'Chalkboard SE', sans-serif;
    background-color: #FFFDF5;
    color: #5D4037;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* ----- 主布局：左侧导航 + 右侧内容 ----- */
.app {
    position: relative;
    display: flex;
    width: 100%;
    height: 100vh;
    z-index: 5;
}

/* ========= 左侧导航 (奶龙黄毛玻璃) ========= */
.nav-side {
    width: 270px;
    height: 100vh;
    background: rgba(255, 250, 225, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 4px solid #FFE066;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.5rem;
    z-index: 10;
    box-shadow: 6px 0 20px rgba(255, 200, 100, 0.2);
    position: relative;
}

/* 装饰小云朵 */
.nav-side::before {
    content: '☁️☁️';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    opacity: 0.3;
}

.nav-side::after {
    content: '🐾';
    position: absolute;
    bottom: 30px;
    right: 25px;
    font-size: 2.2rem;
    opacity: 0.5;
}

.logo-area {
    margin-bottom: 3rem;
}

.logo {
    font-family: 'Quicksand', sans-serif;
    font-weight: 800;
    font-size: 2.6rem;
    letter-spacing: 2px;
    color: #D4880A;
    text-shadow: 4px 4px 0 #FFEAA8;
    border-left: 8px solid #FF9A9E;
    padding-left: 20px;
    line-height: 1.2;
    border-radius: 0 20px 20px 0;
}

.logo-sub {
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-top: 10px;
    color: #B97C3A;
    font-weight: 600;
    padding-left: 28px;
}

.nav-menu {
    list-style: none;
    flex: 1;
}

.nav-item {
    margin-bottom: 30px;
}

.nav-link {
    text-decoration: none;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: #7B5A3E;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 0 14px 16px;
    border-left: 6px solid transparent;
    border-radius: 0 30px 30px 0;
    transition: all 0.2s ease;
}

.nav-link .index {
    color: #FF9A9E;
    font-weight: 800;
    font-size: 1.3rem;
    width: 32px;
    text-align: right;
}

.nav-link:hover {
    color: #B45F1A;
    border-left-color: #FFE066;
    background: linear-gradient(90deg, #FFF2C0, transparent);
}

.nav-link.active {
    color: #9B4F1A;
    border-left-color: #FF9A9E;
    background: linear-gradient(90deg, #FFEFC0, #FFFDF5);
    box-shadow: inset 0 0 0 2px #FFEAA880;
}

.nav-link.active .index {
    color: #FF7077;
}

.nav-footer {
    font-size: 0.85rem;
    color: #B58A5A;
    border-top: 3px dashed #FFD966;
    padding-top: 24px;
    margin-top: 20px;
    font-weight: 600;
}

/* ========= 右侧主内容区 (滚动吸附) ========= */
.main-content {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    scroll-behavior: auto;
    position: relative;
    z-index: 5;
    padding: 0 3rem 0 3rem;
    scrollbar-width: thin;
    scrollbar-color: #FFD966 #FFF4D0;
    scroll-snap-type: y mandatory;
}

.main-content::-webkit-scrollbar {
    width: 10px;
}

.main-content::-webkit-scrollbar-track {
    background: #FFF4D0;
    border-radius: 20px;
}

.main-content::-webkit-scrollbar-thumb {
    background: #FFD966;
    border-radius: 20px;
    box-shadow: inset 0 0 6px #FFC14A;
}

/* 每个区块都是一屏，强制吸附 */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.5rem;
    border-bottom: 4px solid #FFEAA8;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 0 0 0 0;
}

/* 暖色半透遮罩，保证文字清晰 */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 250, 230, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1;
    border-radius: inherit;
}

.section>* {
    position: relative;
    z-index: 2;
}

/* 标题风格 (软萌圆润) */
.section-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 2.5rem;
    display: inline-block;
    color: #9B5A1A;
    background: rgba(255, 240, 180, 0.8);
    padding: 0.3rem 2.5rem 0.3rem 2rem;
    border-radius: 0 60px 60px 0;
    backdrop-filter: blur(8px);
    box-shadow: 8px 8px 0 #FFD58C, 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid #FFF3C9;
}

.section-title .accent {
    color: #FF8A7A;
    font-weight: 900;
    margin-right: 15px;
}

/* 首页 Hero */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-greeting {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: #C56E2C;
    font-weight: 700;
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 245, 0.7);
    display: inline-block;
    padding: 0.4rem 2rem;
    border-radius: 60px;
    backdrop-filter: blur(8px);
    border: 2px solid #FFD68A;
}

.hero-name {
    font-size: 6rem;
    font-weight: 900;
    font-family: 'Quicksand', sans-serif;
    line-height: 1.1;
    color: #7B4A1E;
    text-shadow: 8px 8px 0 #FFE39A;
    margin: 0.2rem 0;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 1.2rem 0 2rem;
    color: #A8682E;
    border-left: 10px solid #FF9A9E;
    padding-left: 30px;
    background: rgba(255, 250, 220, 0.6);
    border-radius: 0 50px 50px 0;
    backdrop-filter: blur(8px);
}

.hero-desc {
    max-width: 700px;
    font-size: 1.3rem;
    line-height: 1.8;
    color: #6E4E2E;
    margin-bottom: 2.8rem;
    font-weight: 600;
    background: rgba(255, 255, 245, 0.7);
    padding: 1.2rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    border: 2px solid #FFE28C;
}

.cta-button {
    display: inline-block;
    background: #FFE066;
    border: 4px solid #FFFFFF;
    color: #7B4A1E;
    font-family: 'Quicksand', sans-serif;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 18px 45px;
    text-decoration: none;
    font-size: 1.3rem;
    border-radius: 80px;
    box-shadow: 0 10px 0 #D49A2A, 0 15px 25px rgba(200, 140, 50, 0.2);
    transition: 0.15s;
    width: fit-content;
    backdrop-filter: blur(8px);
    border: 2px solid #FFF3C9;
}

.cta-button:hover {
    transform: translateY(4px);
    box-shadow: 0 6px 0 #D49A2A, 0 12px 20px rgba(200, 140, 50, 0.2);
    background: #FFD43B;
}

/* 作品网格 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.work-card {
    background: rgba(255, 250, 235, 0.9);
    backdrop-filter: blur(10px);
    border: 5px solid #FFEAA8;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 12px 0 #E5B85C, 0 20px 30px rgba(210, 140, 30, 0.15);
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-card:hover {
    transform: translateY(-8px);
    border-color: #FFD058;
    box-shadow: 0 15px 0 #D49A2A, 0 25px 35px rgba(210, 120, 20, 0.2);
    background: rgba(255, 255, 250, 0.95);
}

.card-img {
    height: 200px;
    background-color: #FFEFC8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B76E1E;
    font-family: 'Quicksand';
    font-weight: 800;
    font-size: 3.5rem;
    border-bottom: 5px solid #FFD68A;
    position: relative;
}

.card-content {
    padding: 2rem 1.8rem;
}

.card-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #804A1A;
}

.card-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.tag {
    background: #FFEAA8;
    border: 3px solid #FFBE5C;
    color: #8A521E;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 6px 18px;
    border-radius: 60px;
    letter-spacing: 1px;
    box-shadow: inset 0 1px 3px #FFF8E0;
}

.card-desc {
    color: #7B5A3E;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 600;
}

/* 关于区域 */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    align-items: center;
}

.about-avatar {
    background: rgba(255, 245, 215, 0.8);
    backdrop-filter: blur(12px);
    border: 6px solid #FFDB8A;
    padding: 35px 25px;
    border-radius: 80px;
    box-shadow: 0 16px 0 #D49A2A, 0 20px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.avatar-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background: radial-gradient(circle at 30% 30%, #FFEFB0, #FFD58C);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 8px solid #FFFFFF;
    border-radius: 50%;
    box-shadow: inset 0 0 0 8px #FFC96E, 0 10px 0 #B5712A;
    overflow: hidden;
    font-family: 'Quicksand';
    font-size: 2.8rem;
    font-weight: 900;
    color: #A6531A;
}

.skill-item {
    margin: 1.8rem 0;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    color: #704A26;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.progress-bar {
    height: 22px;
    background: #FFEBC2;
    border-radius: 40px;
    border: 3px solid #FFC96E;
    overflow: hidden;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.05);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FFD966, #FFB347);
    border-radius: 40px;
    box-shadow: 0 0 15px #FFC14A;
}

/* 联系 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 1.4rem;
    background: rgba(255, 250, 220, 0.75);
    backdrop-filter: blur(12px);
    padding: 1rem 2.5rem;
    border-radius: 80px;
    border: 4px solid #FFDD88;
    width: fit-content;
    min-width: 360px;
    box-shadow: 0 8px 0 #D49A2A, 0 10px 15px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 65px;
    height: 65px;
    background: #FFE59C;
    border: 4px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #B35F1A;
    border-radius: 40px;
    box-shadow: 0 6px 0 #C0852C;
}

.contact-text {
    color: #6E451E;
    font-weight: 700;
}

/* 响应式 */
@media (max-width: 800px) {
    body {
        overflow: auto;
    }

    .app {
        flex-direction: column;
    }

    .nav-side {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        padding: 0.8rem 1.5rem;
        border-right: none;
        border-bottom: 4px solid #FFE066;
    }

    .nav-menu {
        display: flex;
        gap: 20px;
    }

    .nav-item {
        margin-bottom: 0;
    }

    .nav-link {
        padding: 6px 8px;
        font-size: 1.1rem;
    }

    .logo {
        font-size: 2rem;
    }

    .logo-sub {
        display: none;
    }

    .nav-footer {
        display: none;
    }

    .main-content {
        padding: 0 1.5rem;
    }

    .hero-name {
        font-size: 3.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}