/* 小满的个人网站 - 粉色甜美治愈风 */

:root {
    --pink-light: #F9D4D4;
    --pink-medium: #FBC8D5;
    --pink-deep: #F5A0A0;
    --pink-title: #D4728A;
    --text-body: #5A4A4A;
    --text-muted: #7a6666;
    --white: #ffffff;
    --cream: #FFFBFA;
    --gray-light: #faf6f6;
    --shadow-soft: 0 8px 30px rgba(245, 160, 160, 0.2);
    --shadow-hover: 0 14px 42px rgba(245, 160, 160, 0.28);
    --radius: 20px;
    --radius-lg: 24px;
    --border-pink: 1px solid rgba(245, 160, 160, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.85;
    color: var(--text-body);
    background:
        radial-gradient(circle at 10% 20%, rgba(251, 200, 213, 0.35) 0%, transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(249, 212, 212, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6) 0%, transparent 60%),
        linear-gradient(160deg, var(--cream) 0%, var(--white) 45%, var(--pink-light) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

/* 轻微噪点柔光纹理 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(245, 160, 160, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 5%;
    border-bottom: 1px solid rgba(245, 160, 160, 0.12);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pink-title);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--pink-title);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px 18px;
    border-radius: 30px;
}

.nav-link:hover {
    background: rgba(251, 200, 213, 0.45);
    color: #fff;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--pink-medium), var(--pink-deep));
    color: #fff;
    box-shadow: var(--shadow-soft);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--pink-title);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 主体容器 */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 5%;
}

.section-title {
    font-size: 1.9rem;
    color: var(--pink-title);
    margin-bottom: 26px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 卡片通用样式 */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 28px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: var(--border-pink);
    position: relative;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card h2,
.card h3 {
    color: var(--pink-title);
    margin-bottom: 16px;
    font-weight: 600;
}

.card p {
    color: var(--text-body);
    margin-bottom: 12px;
}

/* 卡片角落小花装饰 */
.card::after {
    content: "✿";
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 1rem;
    color: var(--pink-medium);
    opacity: 0.45;
    pointer-events: none;
}

/* 首页 Hero */
.hero {
    text-align: center;
    padding: 90px 5% 70px;
    max-width: 800px;
    margin: 0 auto;
}

.avatar-ring {
    width: 180px;
    height: 180px;
    margin: 0 auto 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-light), var(--pink-medium), var(--pink-deep));
    padding: 7px;
    box-shadow: 0 10px 36px rgba(245, 160, 160, 0.32);
    animation: float 4s ease-in-out infinite;
    position: relative;
}

.avatar-ring::before,
.avatar-ring::after {
    content: "♡";
    position: absolute;
    color: var(--pink-medium);
    font-size: 1.1rem;
    opacity: 0.7;
    animation: twinkle 3s ease-in-out infinite;
}

.avatar-ring::before {
    top: -8px;
    right: 18px;
}

.avatar-ring::after {
    bottom: 8px;
    left: -6px;
    animation-delay: 1.2s;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

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

@keyframes twinkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.15);
    }
}

.hero-title {
    font-size: 2.5rem;
    color: var(--pink-title);
    margin-bottom: 16px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 38px;
}

.tag {
    background: linear-gradient(135deg, var(--pink-light), var(--pink-medium));
    color: var(--text-body);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(245, 160, 160, 0.15);
    border: 1px solid rgba(245, 160, 160, 0.2);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #FBC8D5, #F5A0A0);
    color: #fff;
    padding: 15px 38px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #F5A0A0, #e88a8a);
    transform: translateY(-3px);
    box-shadow: 0 12px 34px rgba(245, 160, 160, 0.38);
}

/* 时间轴 */
.timeline {
    position: relative;
    padding-left: 34px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(180deg, var(--pink-light), var(--pink-deep));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
    padding-left: 24px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -29px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--pink-deep);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(245, 160, 160, 0.2);
}

.timeline-item h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
    color: var(--pink-title);
}

.timeline-item p {
    margin-bottom: 0;
    color: var(--text-body);
}

/* 价值观卡片网格 */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 20px;
}

.value-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: var(--border-pink);
    position: relative;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.value-card::before {
    content: "♡";
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 0.9rem;
    color: var(--pink-medium);
    opacity: 0.5;
}

.value-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
}

.value-card h3 {
    color: var(--pink-title);
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.value-card p {
    color: var(--text-body);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* 回到首页链接 */
.back-home {
    text-align: center;
    margin: 44px 0 24px;
}

.back-home a {
    color: var(--pink-title);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(245, 160, 160, 0.3);
}

.back-home a:hover {
    background: linear-gradient(135deg, var(--pink-medium), var(--pink-deep));
    color: #fff;
    border-color: transparent;
}

/* 底部 */
.footer {
    text-align: center;
    padding: 30px 5%;
    color: var(--text-muted);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.55);
    margin-top: 40px;
    border-top: 1px solid rgba(245, 160, 160, 0.12);
}

/* 淡入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 小花装饰 */
.flower {
    display: inline-block;
    color: var(--pink-title);
    opacity: 0.65;
    margin-left: 4px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-container {
        height: 64px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 16px 0;
        box-shadow: 0 8px 20px rgba(245, 160, 160, 0.15);
        transform: translateY(-120%);
        transition: transform 0.35s ease;
        z-index: 99;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-link {
        display: block;
        width: 80%;
        text-align: center;
        padding: 14px;
        border-bottom: 1px solid rgba(245, 160, 160, 0.1);
    }

    .hero {
        padding: 56px 5% 44px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .avatar-ring {
        width: 150px;
        height: 150px;
    }

    .avatar-inner {
        font-size: 3.2rem;
    }

    .container {
        padding: 44px 5%;
    }

    .card {
        padding: 26px;
    }

    .section-title {
        font-size: 1.55rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .hero-tags {
        gap: 10px;
    }

    .tag {
        padding: 8px 18px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }
}
