
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #0a0a2a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #4caf50;
    text-align: center;
}
p {
    font-size: 1rem;
    color: #d4d4d4;
}
button {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border: none;
    padding: 10px 20px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
button:hover {
    background: linear-gradient(90deg, #8bc34a, #4caf50);
    transform: scale(1.1);
}
/* 星云背景 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover, 
                url('https://images.gptkong.com/demo/sample2.png') no-repeat center center/cover;
    z-index: -1;
    opacity: 0.2;
}
/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}
/* 动画 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.planet {
    animation: rotate 10s linear infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.star {
    animation: blink 2s infinite;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    h1, h2, h3, h4, h5, h6 {
        font-size: 1.5rem;
    }
    p {
        font-size: 0.9rem;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1025px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* 微交互 */
.interactive {
    position: relative;
    overflow: hidden;
}
.interactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(60, 179, 113, 0.3);
    transition: all 0.5s ease;
}
.interactive:hover::before {
    left: 0;
}

