
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>天地阴阳</title>
<style>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html, body {
height: 100%;
}
.container {
height: 100%;
display: flex;
flex-direction: column;
position: relative;
}
.sky {
flex: 1;
background: linear-gradient(to bottom, #87CEEB, #E0F6FF);
}
.earth {
height: 50%;
background: linear-gradient(to bottom, #90EE90, #228B22);
}
.box {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 300px;
height: 300px;
border-radius: 50%;
box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
animation: rotate 8s linear infinite;
transform-origin: center center;
backdrop-filter: blur(5px);
}
.semi-circle {
position: absolute;
height: 100%;
width: 50%;
}
.left {
left: 0;
background: #000;
border-radius: 150px 0 0 150px;
width: 50%;
}
.right {
right: 0;
background: #fff;
border-radius: 0 150px 150px 0;
width: 50%;
}
.box {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 300px;
height: 300px;
border-radius: 50%;
box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
animation: rotate 8s linear infinite;
transform-origin: center center;
backdrop-filter: blur(5px);
background: rgba(255, 255, 255, 0.8);
}
.circle {
position: absolute;
left: 25%;
width: 50%;
height: 50%;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.top-circle {
top: 0;
background: #000;
}
.bottom-circle {
bottom: 0;
background: #fff;
}
.small-circle {
width: 30px;
height: 30px;
border-radius: 50%;
}
.white { background: #fff; }
.black { background: #000; }
@keyframes rotate {
from { transform: translate(-50%, -50%) rotate(0deg); }
to { transform: translate(-50%, -50%) rotate(360deg); }
}
.box:hover {
animation-play-state: paused;
box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}
</style>
</head>
<body>
<div class="container">
<div class="sky"></div>
<div class="earth"></div>
<div class="box">
<div class="semi-circle left"></div>
<div class="semi-circle right"></div>
<div class="circle top-circle">
<span class="small-circle white"></span>
</div>
<div class="circle bottom-circle">
<span class="small-circle black"></span>
</div>
</div>
</div>
</body>
</html>