/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #5a5a5a;
    overflow-x: hidden;
    background: linear-gradient(135deg, #ffeef8 0%, #e8f8f5 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 238, 248, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 182, 193, 0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.avatar-container {
    position: relative;
    cursor: pointer;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ffb6c1;
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1);
    border-color: #98d8c8;
}

.nav-logo h2 {
    color: #ff69b4;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #5a5a5a;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-link:hover {
    color: #ff69b4;
    background: rgba(255, 182, 193, 0.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #98d8c8;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页样式 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffeef8 0%, #e8f8f5 50%, #f0f8ff 100%);
    color: #5a5a5a;
    position: relative;
    overflow: hidden;
}

/* 凤凰树背景 */
.phoenix-tree-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgdmlld0JveD0iMCAwIDEwMCAxMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfMF8xKSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzBfMSIgeDE9IjAiIHkxPSIwIiB4Mj0iMTAwIiB5Mj0iMTAwIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIHN0b3AtY29sb3I9IiNGRkY5RjkiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRkZEOUQ5Ii8+CjwvbGluZWFyR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+');
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.5;
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: #ff69b4;
    background: linear-gradient(45deg, #ff69b4, #98d8c8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.8;
}

.personality, .hobbies {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.intro-text {
    font-size: 1rem;
    margin-top: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(45deg, #ff69b4, #ffb6c1);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #ff1493, #ff69b4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #98d8c8, #a8e6cf);
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #7dd3c0, #98d8c8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(152, 216, 200, 0.4);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3), rgba(152, 216, 200, 0.3));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 182, 193, 0.5);
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.3);
}

.image-placeholder i {
    font-size: 8rem;
    color: #ff69b4;
    opacity: 0.8;
}

/* 灵感宇宙样式 */
.ideas-universe {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.ideas-universe .section-title,
.ideas-universe .section-subtitle {
    color: white;
}

.universe-container {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 流星动画 */
.meteor {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px white, -200px 0 6px white;
    animation: meteor 3s linear infinite;
}

#meteor1 {
    top: 20%;
    left: -200px;
    animation-delay: 0s;
}

#meteor2 {
    top: 40%;
    left: -200px;
    animation-delay: 1.5s;
}

#meteor3 {
    top: 60%;
    left: -200px;
    animation-delay: 3s;
}

@keyframes meteor {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) translateY(100px);
        opacity: 0;
    }
}

/* 闪晶晶效果 */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

#sparkle1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

#sparkle2 {
    top: 30%;
    left: 80%;
    animation-delay: 0.5s;
}

#sparkle3 {
    top: 50%;
    left: 10%;
    animation-delay: 1s;
}

#sparkle4 {
    top: 70%;
    left: 70%;
    animation-delay: 1.5s;
}

#sparkle5 {
    top: 20%;
    left: 50%;
    animation-delay: 2s;
}

#sparkle6 {
    top: 80%;
    left: 30%;
    animation-delay: 2.5s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 灵感星球 */
.ideas-planets {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.planet {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: planetRotate 20s linear infinite;
}

.planet:hover {
    transform: scale(1.1);
}

/* 星球旋转动画 - 每个星球不同的旋转速度 */
.planet:nth-child(1) { animation-duration: 15s; }
.planet:nth-child(2) { animation-duration: 25s; }
.planet:nth-child(3) { animation-duration: 18s; }
.planet:nth-child(4) { animation-duration: 22s; }
.planet:nth-child(5) { animation-duration: 16s; }
.planet:nth-child(6) { animation-duration: 28s; }
.planet:nth-child(7) { animation-duration: 20s; }
.planet:nth-child(8) { animation-duration: 24s; }
.planet:nth-child(9) { animation-duration: 17s; }
.planet:nth-child(10) { animation-duration: 26s; }
.planet:nth-child(11) { animation-duration: 19s; }
.planet:nth-child(12) { animation-duration: 23s; }
.planet:nth-child(13) { animation-duration: 21s; }
.planet:nth-child(14) { animation-duration: 27s; }
.planet:nth-child(15) { animation-duration: 18s; }
.planet:nth-child(16) { animation-duration: 25s; }
.planet:nth-child(17) { animation-duration: 16s; }
.planet:nth-child(18) { animation-duration: 24s; }

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

.planet[data-size="large"] {
    width: 80px;
    height: 80px;
}

.planet[data-size="medium"] {
    width: 60px;
    height: 60px;
}

.planet[data-size="small"] {
    width: 40px;
    height: 40px;
}

.planet-surface {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff69b4, #98d8c8, #ffb6c1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
}

.planet-surface::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 30%;
    height: 30%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.planet-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.planet[data-size="small"] .planet-content {
    font-size: 0.8rem;
}

.planet[data-size="large"] .planet-content {
    font-size: 1.5rem;
}

/* 添加灵感按钮 */
.add-idea-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(45deg, #ff69b4, #98d8c8);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.add-idea-btn:hover {
    transform: translateY(-3px);
}

/* 聊天模块样式 */
.chat {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffeef8 0%, #e8f8f5 100%);
}

.chat-container {
    max-width: 800px;
    margin: 0 auto;
}

.chat-window {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(255, 182, 193, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 182, 193, 0.3);
}

.chat-header {
    background: linear-gradient(45deg, #ff69b4, #98d8c8);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.chat-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-info h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.online-status {
    font-size: 0.9rem;
    opacity: 0.9;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 1.5rem;
    background: #fafafa;
}

.message {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
    gap: 0.8rem;
}

.message-avatar img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.message-content {
    background: white;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    max-width: 70%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: linear-gradient(45deg, #ff69b4, #ffb6c1);
    color: white;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    display: block;
    margin-top: 0.3rem;
}

.chat-input-container {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid rgba(255, 182, 193, 0.3);
}

.chat-input {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.chat-input input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input input:focus {
    border-color: #ff69b4;
}

.send-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, #ff69b4, #98d8c8);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.1);
}

/* 联系方式样式 */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffeef8 0%, #e8f8f5 100%);
    color: #5a5a5a;
}

.contact .section-title,
.contact .section-subtitle {
    color: #ff69b4;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff69b4, #98d8c8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #999;
}

.contact-form {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 182, 193, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: #5a5a5a;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff69b4;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ffb6c1, #98d8c8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(45deg, #ff69b4, #7dd3c0);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.social-link i {
    font-size: 1.2rem;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #ffeef8 0%, #e8f8f5 100%);
    color: #999;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 182, 193, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .ideas-planets {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .ideas-planets {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}
