/* styles.css */

/* 全局重置 */
 :root {
            --beige: #F4F0E6;  /* 米白 */
            --dusty-pink: #D8C4B6; /* 灰粉 */
            --sage: #A3B8A5;  /* 鼠尾草绿 */
            --slate: #6C757D; /* 板岩灰 */
            --taupe: #8B8589; /* 灰褐 */
            --primary: #ff9a75; /* 珊瑚橙 */
            --dark-sage: #8a9e8d; /* 深鼠尾草绿 */
            --light-beige: #f8f5f0; /* 浅米白 */
            --hover-beige: #e8e3da; /* 悬停米白 */
            --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    overflow-x: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    color: #333;
}

 /* 顶部导航栏 */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(139, 133, 137, 0.95);
            backdrop-filter: blur(5px);
            padding: 1rem 0;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 2.5rem;
        }

        nav a {
            color: var(--beige);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
            padding: 10px 16px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            height: 40px;
            position: relative;
        }

        nav a:hover {
            background: var(--sage);
            transform: translateY(-2px);
        }

        nav a i {
            margin-right: 8px;
            font-size: 18px;
        }

        /* 下拉菜单样式 */
        .dropdown {
            position: relative;
        }

        .dropdown-menu {
            position: absolute;
            top: 120%;
            left: 0;
            background: rgba(139, 133, 137, 0.95);
            backdrop-filter: blur(5px);
            border-radius: 10px;
            padding: 0.5rem 0;
            min-width: 160px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
            opacity: 0;
            visibility: hidden;
            transform: translateY(15px);
            transition: var(--transition);
            z-index: 1001;
        }

        .dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            color: var(--beige);
            text-decoration: none;
            padding: 10px 20px;
            transition: var(--transition);
            border-radius: 8px;
        }

        .dropdown-item:hover {
            background: var(--sage);
            padding-left: 24px;
        }

        .dropdown-item i {
            margin-right: 10px;
            width: 18px;
            text-align: center;
        }


/* 主容器 */
.hero-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 中央色彩元素 */
.color-center {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #FF7F50, #ff6b38);
    border-radius: 50%;
    z-index: 2;
    animation: pulse 3s infinite ease-in-out;
}

/* 色彩部分通用样式 */
.color-section {
    position: absolute;
    border-radius: 50%;
    transition: all 0.5s ease;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

/* 花瓣1样式 */
.section1 {
    width: 30%;
    height: 50%;
    background: radial-gradient(circle at center, #FF7F50, #ff6b38);
    animation: bloom 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s forwards;
    top: 0;
    left: 0;
    border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
}

/* 花瓣2样式 */
.section2 {
    width: 35%;
    height: 30%;
    background: radial-gradient(circle at center, #FFE4C4, #ffdbb6);
    animation: bloom 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s forwards;
    top: 15%;
    left: 30%;
    border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
}

/* 花瓣3样式 */
.section3 {
    width: 65%;
    height: 65%;
    background: radial-gradient(circle at center, #FFF8DC, #fff1c2);
    animation: bloom 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.6s forwards;
    top: 25%;
    left: 25%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

/* 花瓣4样式 */
.section4 {
    width: 35%;
    height: 40%;
    background: radial-gradient(circle at center, #DAA520, #d99c1a);
    animation: bloom 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.8s forwards;
    top: 55%;
    left: 45%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* 花瓣5样式 */
.section5 {
    width: 45%;
    height: 70%;
    background: radial-gradient(circle at center, #8FBC8F, #7cb07c);
    animation: bloom 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.0s forwards;
    bottom: 0;
    left: 0;
    border-radius: 50% 50% 20% 80% / 40% 60% 40% 60%;
}

/* 花瓣6样式 */
.section6 {
    width: 30%;
    height: 50%;
    background: radial-gradient(circle at center, #D2B48C, #c9a97c);
    animation: bloom 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.2s forwards;
    top: 10%;
    right: 0;
    border-radius: 30% 70% 50% 50% / 30% 50% 50% 70%;
}

/* 绽放动画关键帧 */
@keyframes bloom {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
}

/* 脉动动画关键帧 */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 127, 80, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 127, 80, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 127, 80, 0);
    }
}

/* 内容区域 */
.content {
    position: relative;
    text-align: center;
    color: #333;
    width: 80%;
    max-width: 800px;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.8s forwards;
}

/* 淡入动画关键帧 */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 标题样式 */
.content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 标题中的特殊文本 */
.content h1 span {
    background: linear-gradient(90deg, #FF7F50, #FFA07A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 段落文本 */
.content p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 35px;
    color: #555;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(90deg, #FF7F50, #FFA07A);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 127, 80, 0.4);
    position: relative;
    overflow: hidden;
}

/* 按钮悬停效果 */
.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 127, 80, 0.5);
}

/* 按钮点击效果 */
.btn:active {
    transform: translateY(0);
}

/* 按钮伪元素效果 */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #FF6347, #FF8C69);
    z-index: -1;
    border-radius: 50px;
    transform: scale(0);
    transition: transform 0.5s ease;
}

/* 按钮悬停时显示伪元素 */
.btn:hover::after {
    transform: scale(1);
}

/* 信息按钮 */
.info-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF7F50, #FFA07A);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 127, 80, 0.4);
    z-index: 102;
    transition: all 0.3s ease;
}

/* 信息按钮悬停效果 */
.info-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(255, 127, 80, 0.5);
}

/* 信息按钮图标 */
.info-button i {
    font-size: 28px;
    transition: transform 0.3s ease;
}

/* 调色板 */
.color-palette {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    gap: 15px;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 0.8s ease 2.2s forwards;
}

/* 淡入动画关键帧 */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* 颜色项 */
.color-item {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

/* 颜色项伪元素 */
.color-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/* 颜色项悬停时伪元素效果 */
.color-item:hover::after {
    transform: scale(1.5);
}

/* 颜色项悬停效果 */
.color-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 橙色 */
.color-orange {
    background: radial-gradient(circle at 30% 30%, #FF7F50, #e06a40);
}

/* 米色1 */
.color-beige1 {
    background: radial-gradient(circle at 30% 30%, #FFE4C4, #e8cdaf);
}

/* 奶油色 */
.color-cream {
    background: radial-gradient(circle at 30% 30%, #FFF8DC, #e6e1c5);
}

/* 棕褐色 */
.color-tan {
    background: radial-gradient(circle at 30% 30%, #DAA520, #c08f1c);
}

/* 绿色 */
.color-green {
    background: radial-gradient(circle at 30% 30%, #8FBC8F, #7ca67c);
}

/* 米色2 */
.color-beige2 {
    background: radial-gradient(circle at 30% 30%, #D2B48C, #b99c75);
}

/* 重播按钮 */
.replay-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 11;
    transition: all 0.3s ease;
    color: #555;
}

/* 重播按钮悬停效果 */
.replay-btn:hover {
    background-color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    color: #FF7F50;
}

/* 统计信息 */
.stats {
    position: absolute;
    top: 30px;
    left: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 11;
    display: flex;
    gap: 25px;
    font-weight: 500;
    color: #555;
}

/* 统计项 */
.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 统计项图标 */
.stat-item i {
    color: #FF7F50;
}

/* 信息面板 */
.info-panel {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 101;
    max-width: 350px;
    transform: translateX(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 25px;
}

/* 显示信息面板 */
.info-panel.show {
    transform: translateX(0);
}

/* 信息面板标题 */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 关闭按钮 */
.close-panel {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-panel:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #FF7F50;
}

/* 面板链接区域 */
.panel-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

/* 单个链接样式 */
.panel-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
    padding: 15px 10px;
    border-radius: 12px;
}

.panel-link:hover {
    background-color: rgba(255, 127, 80, 0.1);
    transform: translateY(-5px);
}

.panel-link span {
    margin-top: 10px;
    font-weight: 500;
    font-size: 0.95rem;
}

/* 链接图标 */
.link-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 音乐图标样式 */
.music {
    background: linear-gradient(135deg, #FF7F50, #FFA07A);
}

/* 生活图标样式 */
.life {
    background: linear-gradient(135deg, #8FBC8F, #7cb07c);
}

/* 记录图标样式 */
.journal {
    background: linear-gradient(135deg, #DAA520, #c08f1c);
}

/* 面板描述文字 */
.panel-description p {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}

/* 响应式设计 - 移动端 */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .content h1 {
        font-size: 2.2rem;
    }
    
    .content p {
        font-size: 1rem;
    }
    
    .color-section {
        width: 80% !important;
        height: 40% !important;
    }
    
    .section1, .section2, .section3, .section4, .section5, .section6 {
        border-radius: 40% !important;
    }
    
    .color-palette {
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
    }
    
    .stats {
        top: 100px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        justify-content: center;
    }
    
    .panel-links {
        grid-template-columns: 1fr;
    }
    
    .info-panel {
        max-width: 90%;
        left: 50%;
        transform: translateX(150%) translateX(-50%);
    }
    
    .info-panel.show {
        transform: translateX(-50%);
    }
}
