/* ===== Emma's Magical World - CSS ===== */

/* ===== 基础变量 ===== */
:root {
    --pink: #FF6B9D;
    --pink-light: #FFB3D0;
    --pink-bg: #FFF0F5;
    --purple: #B388FF;
    --purple-light: #E1BEE7;
    --purple-dark: #7C4DFF;
    --yellow: #FFD54F;
    --yellow-light: #FFF9C4;
    --blue: #64B5F6;
    --blue-light: #BBDEFB;
    --green: #81C784;
    --green-light: #C8E6C9;
    --orange: #FFB74D;
    --coral: #FF8A80;
    --text-dark: #4A3347;
    --text-medium: #7B6178;
    --text-light: #A08D9D;
    --bg-main: #FFFBFE;
    --bg-section: #FFF5F9;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(255, 107, 157, 0.12);
    --shadow-md: 0 4px 16px rgba(255, 107, 157, 0.16);
    --shadow-lg: 0 8px 32px rgba(255, 107, 157, 0.2);
    --shadow-card: 0 4px 20px rgba(179, 136, 255, 0.15);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-cn: 'ZCOOL KuaiLe', cursive, -apple-system, sans-serif;
    --font-en: 'Nunito', -apple-system, sans-serif;
}

/* ===== 重置样式 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== 通用容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 飘浮装饰 ===== */
.floating-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float-item {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: floatAround linear infinite;
    pointer-events: none;
}

@keyframes floatAround {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ===== 导航栏 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 251, 254, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(255, 107, 157, 0.1);
    z-index: 1000;
    border-bottom: 3px solid transparent;
    background-image: linear-gradient(rgba(255,251,254,0.9), rgba(255,251,254,0.9)),
                      linear-gradient(90deg, var(--pink), var(--purple), var(--blue), var(--yellow), var(--pink));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pink);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-star {
    display: inline-block;
    animation: spinStar 3s linear infinite;
    color: var(--yellow);
}

@keyframes spinStar {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.nav-menu {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-medium);
    border-radius: var(--radius-xl);
    transition: var(--transition);
    position: relative;
}

.nav-link::before {
    content: attr(data-emoji);
    margin-right: 4px;
    font-size: 0.85rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--pink);
    position: relative;
    transition: var(--transition);
    border-radius: 3px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 3px;
    background: var(--pink);
    transition: var(--transition);
    border-radius: 3px;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* ===== 按钮样式 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-cn);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn span {
    font-size: 1.3rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 107, 157, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.45);
}

.btn-secondary {
    background: var(--white);
    color: var(--pink);
    border-color: var(--pink-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--pink-bg);
    border-color: var(--pink);
    transform: translateY(-3px);
}

/* ===== 章节标题 ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-emoji {
    display: inline-block;
    font-size: 3rem;
    margin-bottom: 12px;
    animation: bounce 2s ease-in-out infinite;
}

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

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 50%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-medium);
}

/* ===== 主横幅 Hero ===== */
.hero {
    padding: 120px 0 0;
    background: linear-gradient(180deg, #FFF0F7 0%, #F5E6FF 40%, #E8F4FD 70%, var(--white) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--pink);
    top: -50px;
    right: -50px;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--purple);
    bottom: 20%;
    left: -50px;
    animation: floatShape 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--yellow);
    top: 30%;
    right: 10%;
    animation: floatShape 7s ease-in-out infinite 1s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: var(--blue);
    bottom: 30%;
    right: 25%;
    animation: floatShape 9s ease-in-out infinite 2s;
}

.shape-5 {
    width: 120px;
    height: 120px;
    background: var(--green);
    top: 20%;
    left: 15%;
    animation: floatShape 11s ease-in-out infinite 0.5s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-bottom: 80px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    font-size: 1rem;
    color: var(--pink);
    border: 2px solid var(--pink-light);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.highlight {
    color: var(--pink);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, var(--yellow) 0%, var(--orange) 100%);
    opacity: 0.3;
    border-radius: 6px;
    z-index: -1;
}

.hero-english {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 800;
    color: var(--purple);
    margin-left: 8px;
    position: relative;
    top: -4px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 32px;
    line-height: 2;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-fun-facts {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.fun-fact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.fun-fact:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.fun-fact-emoji {
    font-size: 1.5rem;
}

.fun-fact-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-medium);
}

/* Hero Avatar */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-avatar-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
}

.avatar-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue), var(--yellow), var(--pink));
    animation: ringRotate 6s linear infinite;
    opacity: 0.6;
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-avatar {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 6px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.avatar-sparkle {
    position: absolute;
    font-size: 2rem;
    z-index: 2;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle-1 { top: 10px; right: 20px; animation-delay: 0s; }
.sparkle-2 { bottom: 30px; right: 0; animation-delay: 0.5s; }
.sparkle-3 { top: 40%; left: -20px; animation-delay: 1s; }
.sparkle-4 { top: 0; left: 30%; animation-delay: 1.5s; }

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.3) rotate(20deg); opacity: 0.6; }
}

.hero-wave {
    width: 100%;
    line-height: 0;
    margin-top: auto;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 关于我 ===== */
.about {
    padding: 80px 0 100px;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.about-intro {
    background: linear-gradient(180deg, #FFF0F5 0%, var(--white) 100%);
    border: 2px solid #FFE4EC;
}
.about-intro::before { background: linear-gradient(90deg, var(--pink), var(--coral)); }

.about-love {
    background: linear-gradient(180deg, #F3E5F5 0%, var(--white) 100%);
    border: 2px solid #E8D5F5;
}
.about-love::before { background: linear-gradient(90deg, var(--purple), var(--pink)); }

.about-dream {
    background: linear-gradient(180deg, #FFF9C4 0%, var(--white) 100%);
    border: 2px solid #FFF0B3;
}
.about-dream::before { background: linear-gradient(90deg, var(--yellow), var(--orange)); }

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

.about-card-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.about-card p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.9;
}

/* ===== 我的爱好 ===== */
.hobbies {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-section) 0%, #F5E6FF 50%, #E8F4FD 100%);
    position: relative;
    overflow: hidden;
}

.hobbies-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cloud {
    position: absolute;
    font-size: 4rem;
    opacity: 0.2;
    animation: cloudDrift linear infinite;
}

.cloud-1 { top: 10%; animation-duration: 30s; left: -100px; }
.cloud-2 { top: 40%; animation-duration: 40s; left: -150px; animation-delay: 10s; }
.cloud-3 { top: 70%; animation-duration: 35s; left: -120px; animation-delay: 5s; }

@keyframes cloudDrift {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(calc(100vw + 200px)); }
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.hobby-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.hobby-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.hobby-drawing::after { background: linear-gradient(90deg, #FF6B9D, #FFB74D); }
.hobby-dancing::after { background: linear-gradient(90deg, #B388FF, #FF6B9D); }
.hobby-sports::after { background: linear-gradient(90deg, #64B5F6, #81C784); }

.hobby-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.hobby-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hobby-drawing .hobby-icon-wrapper { background: linear-gradient(135deg, #FFE4E1, #FFF0F5); }
.hobby-dancing .hobby-icon-wrapper { background: linear-gradient(135deg, #F3E5F5, #E8D5F5); }
.hobby-sports .hobby-icon-wrapper { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); }

.hobby-icon {
    font-size: 3rem;
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

.hobby-card h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.hobby-card p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 20px;
}

.hobby-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.hobby-item {
    padding: 6px 14px;
    background: var(--bg-section);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    color: var(--text-medium);
    border: 1px solid rgba(255, 107, 157, 0.15);
    transition: var(--transition);
}

.hobby-item:hover {
    background: var(--pink-light);
    color: var(--text-dark);
    transform: scale(1.05);
}

/* ===== 舞台表演 ===== */
.stage {
    padding: 100px 0;
    background: var(--white);
}

.stage-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
}

.stage-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

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

.stage-card-large {
    grid-row: 1 / 3;
}

.stage-card-large .stage-placeholder {
    height: 300px;
}

.stage-placeholder {
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.stage-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.1) 100%);
}

.stage-placeholder-icon {
    font-size: 3.5rem;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    animation: bounce 2.5s ease-in-out infinite;
}

.stage-placeholder-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    z-index: 1;
    margin-top: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.stage-info {
    padding: 24px;
}

.stage-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: block;
}

.stage-info h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.stage-info p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.8;
}

/* ===== 旅行足迹 ===== */
.travel {
    padding: 100px 0;
    background: linear-gradient(180deg, #FFF5F9 0%, #F0F4FF 50%, #EAFAF1 100%);
}

.travel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.travel-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.travel-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: var(--shadow-lg);
}

.travel-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.travel-image-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.travel-content {
    padding: 20px 24px 24px;
}

.travel-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.travel-pin {
    font-size: 1.2rem;
}

.travel-content p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.8;
}

/* ===== 交朋友 ===== */
.friends {
    padding: 100px 0;
    background: var(--white);
}

.friends-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.friends-wish-card {
    background: linear-gradient(135deg, #FFF0F5, #F3E5F5);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    border: 2px solid #FFE4EC;
}

.wish-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.wish-icon {
    font-size: 2rem;
    animation: sparkle 2s ease-in-out infinite;
}

.wish-header h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.wish-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wish-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--text-medium);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.wish-list li span {
    font-size: 1.3rem;
}

.wish-list li:hover {
    background: var(--white);
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
}

/* 友谊贴纸墙 */
.friends-sticker-wall h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.sticker-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sticker {
    padding: 10px 20px;
    background: var(--bg);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    transform: rotate(var(--rotation));
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: default;
}

.sticker:hover {
    transform: rotate(0deg) scale(1.1);
    box-shadow: var(--shadow-md);
}

/* 留言表单 */
.friends-form-wrapper {
    position: relative;
}

.friends-form {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 2px solid #F3E5F5;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.form-header span {
    font-size: 2rem;
}

.form-header h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: var(--font-cn);
    border: 2px solid #F3E5F5;
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: #FAFAFA;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pink);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Emoji Picker */
.emoji-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.emoji-btn {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    background: #FAFAFA;
    border: 2px solid #F3E5F5;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-btn:hover {
    transform: scale(1.2);
    border-color: var(--pink);
    background: var(--pink-bg);
}

.emoji-btn.selected {
    border-color: var(--pink);
    background: var(--pink-bg);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
    transform: scale(1.1);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
}

/* 留言区域 */
.messages-area {
    margin-top: 20px;
}

.messages-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 24px;
    text-align: center;
}

.messages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.message-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent);
    transition: var(--transition);
    animation: fadeInUp 0.5s ease both;
}

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

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.message-emoji {
    font-size: 1.3rem;
}

.message-header strong {
    font-size: 1.05rem;
    color: var(--text-dark);
}

.message-age {
    font-size: 0.8rem;
    color: var(--text-light);
    background: #F5F5F5;
    padding: 2px 10px;
    border-radius: 10px;
}

.message-card p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ===== 页脚 ===== */
.footer {
    background: linear-gradient(135deg, #4A3347 0%, #6B4C68 100%);
    color: var(--white);
    position: relative;
    padding-top: 0;
}

.footer-wave {
    width: 100%;
    line-height: 0;
    color: var(--white);
    margin-bottom: -1px;
}

.footer-wave svg {
    width: 100%;
    height: 60px;
    color: #4A3347;
}

.footer-content {
    text-align: center;
    padding: 40px 0 48px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--pink-light);
}

.footer-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-decoration {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.footer-decoration span {
    animation: bounce 2s ease-in-out infinite;
}

.footer-decoration span:nth-child(2) { animation-delay: 0.2s; }
.footer-decoration span:nth-child(3) { animation-delay: 0.4s; }
.footer-decoration span:nth-child(4) { animation-delay: 0.6s; }
.footer-decoration span:nth-child(5) { animation-delay: 0.8s; }
.footer-decoration span:nth-child(6) { animation-delay: 1s; }

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== 滚动动画 ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 通知弹窗 ===== */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 18px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-cn);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.notification-success {
    background: linear-gradient(135deg, #81C784, #66BB6A);
    color: white;
}

.notification-error {
    background: linear-gradient(135deg, #FF8A80, #FF5252);
    color: white;
}

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

/* ===== Confetti ===== */
.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    z-index: 10000;
    pointer-events: none;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg) scale(0.5);
    }
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content { order: 1; }
    .hero-image { order: 0; }

    .hero-avatar-wrapper {
        width: 280px;
        height: 280px;
    }

    .hero-avatar {
        width: 280px;
        height: 280px;
    }

    .hero-description { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    .hero-fun-facts { justify-content: center; flex-wrap: wrap; }

    .about-content { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .hobbies-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }

    .stage-gallery {
        grid-template-columns: 1fr;
    }

    .stage-card-large { grid-row: auto; }
    .travel-grid { grid-template-columns: repeat(2, 1fr); }
    .friends-content { grid-template-columns: 1fr; }
    .messages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 251, 254, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        border-bottom: 3px solid var(--pink-light);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle { display: block; }

    .nav-toggle.active .hamburger { background: transparent; }
    .nav-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
    .nav-toggle.active .hamburger::after { transform: rotate(-45deg); top: 0; }

    .hero-title { font-size: 2.2rem; }
    .hero-english { font-size: 1.5rem; }
    .section-title { font-size: 2rem; }

    .travel-grid { grid-template-columns: 1fr; }
    .messages-grid { grid-template-columns: 1fr; }

    .hero-fun-facts { gap: 10px; }
    .fun-fact { padding: 8px 12px; }
    .fun-fact-text { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .hero { padding: 100px 0 0; }
    .hero-title { font-size: 1.8rem; }
    .hero-english { font-size: 1.2rem; display: block; margin-left: 0; margin-top: 4px; }
    .hero-description { font-size: 1rem; }

    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; }

    .hero-avatar-wrapper { width: 220px; height: 220px; }
    .hero-avatar { width: 220px; height: 220px; }

    .about-card { padding: 28px 20px; }
    .hobby-card { padding: 28px 20px; }

    .friends-form { padding: 24px; }
    .section-emoji { font-size: 2.5rem; }
    .section-title { font-size: 1.7rem; }
}
