/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html, body {
    height: 100%; /* 确保html和body占据整个视口高度 */
}

body {
    background: #fafafa;
    color: #333;
    line-height: 1.6;
    position: relative;
    padding-bottom: 350px; /* 确保为固定底部的备案信息留出非常充足的空间 */
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff85a2;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1002;
}

.logo:hover {
    transform: scale(1.05);
    color: #ff6b8b;
}

.nav-links {
    display: flex; /* PC端默认显示为flex */
    gap: 30px;
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 10px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff85a2;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #ff85a2;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #ff85a2;
    font-weight: bold;
}

.nav-links a.active::after {
    width: 100%;
    background: #ff85a2;
}

/* 菜单按钮样式 */
.menu-button {
    display: none; /* PC端默认隐藏 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    width: 40px;
    height: 40px;
    z-index: 1002;
}

.menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ff85a2;
    position: absolute;
    left: 8px;
    transition: all 0.3s ease;
}

.menu-button span:nth-child(1) {
    top: 12px;
}

.menu-button span:nth-child(2) {
    top: 19px;
}

.menu-button span:nth-child(3) {
    top: 26px;
}

.menu-button.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 19px;
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 19px;
}

/* 主要内容区域 */
.hero {
    min-height: calc(100vh - 60px); /* 减去底部备案信息的高度 */
    margin-bottom: 0; /* 底部空间由body的padding-bottom管理 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.75) 100%);
    backdrop-filter: blur(5px);
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero h1 {
    font-size: 56px;
    color: #ff85a2;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    background: linear-gradient(45deg, #ff85a2, #ff6b8b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 20px 40px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 为每个字设置不同的动画延迟 */
.hero h1 span:nth-child(1) { animation-delay: 0.1s; }
.hero h1 span:nth-child(2) { animation-delay: 0.2s; }
.hero h1 span:nth-child(3) { animation-delay: 0.3s; }
.hero h1 span:nth-child(4) { animation-delay: 0.4s; }
.hero h1 span:nth-child(5) { animation-delay: 0.5s; }
.hero h1 span:nth-child(6) { animation-delay: 0.6s; }
.hero h1 span:nth-child(7) { animation-delay: 0.7s; }
.hero h1 span:nth-child(8) { animation-delay: 0.8s; }

/* 移除所有旧的动画效果 */
.hero h1::before,
.hero h1::after {
    display: none;
}

.hero h1:hover {
    transform: none;
    box-shadow: none;
}

.hero h1:hover::before {
    display: none;
}

.hero h1:hover::after {
    display: none;
}

/* 移除星星相关样式 */
.hero h1 .sparkle {
    display: none;
}

/* 动画关键帧 */
@keyframes borderGradientPulse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glow {
    0%, 100% { filter: blur(8px) brightness(1); }
    50% { filter: blur(12px) brightness(1.2); }
}

@keyframes shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.typing-text {
    font-size: 24px;
    color: #666;
    margin-bottom: 20px;
    min-height: 30px;
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
}

.typing-text.typing::after {
    content: '|';
    animation: blink 0.7s infinite;
    font-weight: bold;
    color: #ff85a2;
}

.hero-description {
    margin: 30px 0 40px;
    line-height: 2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.subtitle {
    font-size: 28px;
    color: #ff85a2;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.5s ease;
}

.description {
    font-size: 20px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 300;
    transition: all 0.5s ease;
}

.english-text {
    font-size: 16px;
    color: #888;
    font-style: italic;
    margin-bottom: 20px;
    font-weight: 300;
    transition: all 0.5s ease;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #ff85a2, #ff6b8b);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 133, 162, 0.3);
    transform: translateZ(60px);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 133, 162, 0.4);
}

.button-arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.cta-button:hover .button-arrow {
    transform: translateX(5px);
}

.features {
    max-width: 1200px;
    margin: 80px auto 80px; /* 调整features的底部边距 */
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 133, 162, 0.2);
}

.feature-icon {
    font-size: 40px;
    color: #ff85a2;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(255, 133, 162, 0.2);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.feature-item {
    text-align: center;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(255, 133, 162, 0.1);
}

.feature-number {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #ff85a2;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(255, 133, 162, 0.2);
}

.feature-text {
    font-size: 14px;
    color: #666;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
    50% { background-position: 100% 50%; filter: hue-rotate(10deg); }
    100% { background-position: 0% 50%; filter: hue-rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

@keyframes sparkle {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-100px); opacity: 0; }
}

@keyframes float3D {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateY(180deg); }
}

@keyframes spin3D {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes bounce3D {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
}

/* 移除旧的装饰元素样式 */
.header,
.anime-decoration, .heart-decoration, .star-decoration, .sparkle-decoration, .emoji-decoration, .anime-3d-decoration,
.sakura {
    display: none;
}

/* 鼠标跟随效果 */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 133, 162, 0.3);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    z-index: 9999;
}

.cursor.active {
    width: 40px;
    height: 40px;
    background: rgba(255, 133, 162, 0.2);
}

/* 修改色块样式 */
.interactive-blocks {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.color-block {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.block-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 15%;
    background: linear-gradient(135deg, rgba(255, 133, 162, 0.15), rgba(255, 182, 193, 0.15));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(-15deg);
}

.block-2 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 20%;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.15), rgba(255, 255, 255, 0.15));
    border-radius: 50%;
    transform: rotate(25deg);
}

.block-3 {
    width: 140px;
    height: 140px;
    bottom: 25%;
    left: 25%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 133, 162, 0.15));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(-20deg);
}

.block-4 {
    width: 90px;
    height: 90px;
    bottom: 30%;
    right: 25%;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.15), rgba(255, 255, 255, 0.15));
    border-radius: 50%;
    transform: rotate(15deg);
}

.color-block:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 133, 162, 0.2);
}

.floating-3d {
    animation: float3D 3s ease-in-out infinite;
}

.spinning-3d {
    animation: spin3D 4s linear infinite;
}

.bouncing-3d {
    animation: bounce3D 2s ease-in-out infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding-bottom: 250px; /* 移动端也确保为备案信息留出非常充足的空间 */
    }

    .navbar {
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0;
    }

    .menu-button {
        display: block; /* 移动端显示 */
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        position: relative;
        width: 40px;
        height: 40px;
        z-index: 1002;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100vw; /* 初始隐藏在屏幕左侧 */
        width: 100vw; /* 占据整个视口宽度 */
        height: 100vh; /* 占据整个视口高度 */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px); /* 调整模糊值，使其更柔和 */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 80px 20px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: left 0.5s ease-in-out; /* 从左侧滑入 */
        z-index: 1001; /* 确保在叠加层之上 */
        display: flex; /* 始终为flex，通过left控制显示/隐藏 */
        gap: 20px; /* 调整菜单项间距 */
        overflow-y: auto; /* 允许内容滚动 */
        pointer-events: auto; /* 确保菜单容器可以接收点击事件 */
    }

    .nav-links.active {
        left: 0; /* 激活时滑入视图 */
    }
    
    .nav-links li a {
        font-size: 24px; /* 移动端链接字体放大 */
        padding: 15px 0; /* 增加点击区域 */
        pointer-events: auto; /* 确保链接自身可以接收点击事件 */
    }

    /* 主页内容在移动端的调整 */
    .hero h1 {
        font-size: 40px;
        padding: 15px 30px;
    }

    .typing-text {
        font-size: 20px;
        padding: 10px 20px;
    }
    .hero-description {
        padding: 0 20px;
    }

    .subtitle {
        font-size: 24px;
    }

    .description {
        font-size: 18px;
    }

    .english-text {
        font-size: 14px;
    }

    .hero {
        min-height: calc(100vh - 50px);
        margin-bottom: 0; /* 底部空间由body的padding-bottom管理 */
    }

    .features {
        margin: 60px auto 60px; /* 调整移动端features的底部边距 */
        padding: 0 15px;
        gap: 30px;
    }
}

/* 添加底部边距 */
.hero {
    min-height: calc(100vh - 60px); /* 减去底部备案信息的高度 */
    margin-bottom: 0; /* 底部空间由body的padding-bottom管理 */
}

/* 添加备案信息样式 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0; /* 增加内边距 */
    text-align: center;
    font-size: 14px;
    color: #666;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer a {
    color: #ff85a2;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #ff6b8b;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - 50px);
        margin-bottom: 0; /* 底部空间由body的padding-bottom管理 */
    }

    .footer {
        padding: 15px 0; /* 移动端也增加内边距 */
        font-size: 12px;
    }
}

/* 花瓣样式 */
.petal {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 133, 162, 0.15), rgba(255, 182, 193, 0.15));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: petalFloat 4s linear infinite;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform-style: preserve-3d;
    perspective: 1000px;
    transform-origin: center center;
}

@keyframes petalFloat {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 移除碰撞效果 */
.petal.collision {
    display: none;
}

/* 移除云朵相关样式 */
.cloud {
    display: none;
}

.cloud::before,
.cloud::after {
    display: none;
} 