
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle at center, #000033, #1A1A4D, #000033);
    color: #ffffff;
    overflow-x: hidden;
}

/* 渐变背景与动画效果 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

@keyframes aurora-move {
    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;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3em;
    background: linear-gradient(90deg, #ff7f50, #ff1493, #8a2be2, #00ced1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-animation 5s ease infinite;
}

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

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2em;
    position: relative;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ff1493;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* 主要内容区域 */
main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* 信息块样式 */
.info-block {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* 按钮样式 */
.button-primary {
    display: inline-block;
    padding: 10px 20px;
    background: #ff1493;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
    font-size: 1em;
}

.button-primary:hover {
    background: #ff7f50;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.7);
}

/* 图像样式 */
img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s;
}

img:hover {
    transform: scale(1.05);
}

/* 示例展示区样式 */
.sample-display {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 15px;
    margin-top: 50px;
}

.sample-display h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2em;
    margin-bottom: 20px;
}

.sample-display article {
    line-height: 1.6;
}

.sample-display pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    margin: 20px 0;
}

.sample-display code {
    color: #00ff7f;
}

/* 响应式设计 */
@media (max-width: 320px) {
    header h1 {
        font-size: 2em;
    }

    nav a {
        font-size: 1em;
    }

    .button-primary {
        font-size: 0.9em;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2.5em;
    }

    nav a {
        font-size: 1.1em;
    }

    .button-primary {
        font-size: 1em;
        padding: 10px 18px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .info-block {
        padding: 15px;
    }
}

@media (min-width: 1024px) and (max-width: 1200px) {
    header h1 {
        font-size: 3em;
    }

    nav a {
        font-size: 1.2em;
    }
}

@media (min-width: 1201px) {
    header h1 {
        font-size: 3.5em;
    }

    nav a {
        font-size: 1.3em;
    }

    .button-primary {
        font-size: 1.1em;
        padding: 12px 24px;
    }
}

@media (min-width: 1440px) {
    header h1 {
        font-size: 4em;
    }

    nav a {
        font-size: 1.4em;
    }

    .button-primary {
        font-size: 1.2em;
        padding: 14px 28px;
    }
}

/* 粒子动画效果 */
.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0.8;
    animation: particle-fall 10s infinite;
}

@keyframes particle-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 图标悬停效果 */
.icon {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icon:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* 代码块样式 */
.code-block {
    background: #2e2e2e;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

.code-block code {
    color: #00ff7f;
    font-family: 'Courier New', monospace;
}

/* 链接样式 */
a[rel="nofollow"] {
    color: #ff1493;
    text-decoration: none;
}

a[rel="nofollow"]:hover {
    text-decoration: underline;
}

/* 提示文本样式 */
.reference-note {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-left: 5px solid #ff1493;
    margin: 20px 0;
    font-style: italic;
}

/* 最底部提示 */
.footer-note {
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: #cccccc;
}

