
/* 
量子幻境 - 渐变极光与梦幻空间的量子计算研究
关键词：渐变极光效果, 梦幻空间, 量子计算研究, 高科技网页设计, 未来感, 用户体验优化
描述：通过渐变极光效果与梦幻空间设计，传达高科技与未来感的品牌形象。结合量子计算研究的专业性与用户的情感共鸣，提供美学与信息可读性的完美融合，打造既视觉震撼又功能性强大的高科技网页。
*/

/* 全局样式 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #001f3f, #6600cc);
    color: #ffffff;
    background-size: 400% 400%;
    animation: gradientBackground 15s ease infinite;
}

/* 渐变背景动画 */
@keyframes gradientBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin: 20px;
}

header h1 {
    font-family: 'Quantum Sans', sans-serif;
    font-size: 3em;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textWave 5s ease infinite;
}

@keyframes textWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 主内容样式 */
main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 文章部分 */
article {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

article h2, article h3, article h4 {
    color: #ffffff;
}

article pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

article code {
    font-family: 'Fira Code', monospace;
    color: #00ffea;
}

/* 示例数据展示 */
.sample-data {
    background: rgba(50, 50, 50, 0.8);
    padding: 20px;
    border-radius: 10px;
}

.sample-data h3 {
    border-bottom: 2px solid #ffffff;
    padding-bottom: 10px;
}

.sample-data ul, .sample-data table {
    margin-top: 15px;
}

.sample-data table {
    width: 100%;
    border-collapse: collapse;
}

.sample-data th, .sample-data td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: left;
}

.sample-data th {
    background: linear-gradient(90deg, #00ffff, #ff00ff);
}

/* 图片样式 */
img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

/* 按钮样式 */
.button {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 51, 204, 0.8);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.3s ease;
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.button:hover::before {
    width: 200px;
    height: 200px;
}

.button:hover {
    background: rgba(0, 51, 204, 1);
}

/* 底部样式 */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .container {
        padding: 10px;
    }
    
    .button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }
    
    .container {
        padding: 5px;
    }
    
    .button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (min-width: 1440px) {
    header h1 {
        font-size: 4em;
    }
    
    .button {
        padding: 12px 24px;
        font-size: 16px;
    }
}

/* 动态粒子效果 */
.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #00ffff;
    border-radius: 50%;
    opacity: 0.7;
    animation: particleMove 10s infinite;
}

@keyframes particleMove {
    0% { transform: translateY(0) translateX(0); opacity: 1; }
    100% { transform: translateY(-500px) translateX(200px); opacity: 0; }
}

/* 隐藏式导航栏 */
nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    transition: all 0.3s ease;
}

body:hover nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

nav a {
    color: #ffffff;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1.2em;
}

nav a:hover {
    color: #00ffff;
}

