/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #e0f7fa, #e1bee7, #b2ebf2);
    color: #333;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 40px 0;
    animation: fadeIn 1.5s ease-out;
}

.title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 4rem;
    color: #5e35b1;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.title:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(94, 53, 177, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    color: #00796b;
    margin-top: 10px;
}

/* 主视觉区 */
.main-visual {
    height: 400px;
    position: relative;
    margin: 50px 0;
}

.planet {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #fff176, #ffd54f);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px #fff176;
    animation: glow 3s infinite alternate;
}

.vine {
    position: absolute;
    width: 300px;
    height: 300px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10,50 Q25,25 40,50 T70,50 T90,30" stroke="%234caf50" stroke-width="2" fill="none"/></svg>') no-repeat;
    background-size: contain;
    top: 30%;
    left: 40%;
    animation: sway 8s infinite ease-in-out;
}

/* 创意元素 */
.creative-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.book, .brush, .music-note {
    position: absolute;
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.book {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z" fill="%235e35b1"/></svg>');
    top: 20%;
    left: 20%;
    animation: float 6s infinite ease-in-out;
}

.brush {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.71 4.63l-1.34-1.34c-.39-.39-1.02-.39-1.41 0l-1.34 1.34 2.75 2.75 1.34-1.34c.39-.39.39-1.02 0-1.41zM8.94 12l-2.36 2.36c-.39.39-.39 1.02 0 1.41l1.06 1.06c.39.39 1.02.39 1.41 0L11.41 14l-2.47-2zm5.65-5.65l-4.24 4.24-2.12-2.12 4.24-4.24 2.12 2.12z" fill="%2300796b"/></svg>');
    top: 30%;
    right: 25%;
    animation: float 5s infinite ease-in-out 1s;
}

.music-note {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z" fill="%23d81b60"/></svg>');
    bottom: 20%;
    left: 30%;
    animation: float 7s infinite ease-in-out 0.5s;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 云朵装饰 */
.cloud {
    position: fixed;
    background: white;
    border-radius: 50%;
    opacity: 0.7;
    z-index: -1;
}

.cloud1 {
    width: 150px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation: drift 25s linear infinite;
}

.cloud2 {
    width: 200px;
    height: 80px;
    top: 30%;
    right: 15%;
    animation: drift 30s linear infinite reverse;
}

.cloud3 {
    width: 100px;
    height: 40px;
    bottom: 20%;
    left: 20%;
    animation: drift 20s linear infinite;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    from { box-shadow: 0 0 20px #fff176; }
    to { box-shadow: 0 0 40px #ffd54f; }
}

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

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

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

/* 水墨过渡效果 */
.container {
    view-transition-name: container;
}

::view-transition-old(root) {
    animation: 0.5s cubic-bezier(0.4, 0, 0.2, 1) both fade-out;
}

::view-transition-new(root) {
    animation: 0.5s cubic-bezier(0.4, 0, 0.2, 1) both fade-in;
}

@keyframes fade-out {
    to { opacity: 0; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .main-visual {
        height: 300px;
    }
    
    .planet {
        width: 150px;
        height: 150px;
    }
    
    .card {
        padding: 15px;
    }
}

.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.beian {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.beian:hover {
    color: #333;
    text-decoration: underline;
}
