
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    overflow-x: hidden;
}

/* 全局链接样式 */
a {
    color: #ffcc00;
    text-decoration: none;
    rel: nofollow;
}

a:hover {
    text-decoration: underline;
}

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

/* 头部导航 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffcc00;
}

/* 首页全屏沉浸布局 */
.hero {
    height: 100vh;
    background: radial-gradient(circle, rgba(255,87,34,0.8), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: aurora-move 15s linear infinite;
}

.hero h1 {
    font-size: 3rem;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-top: 20px;
    color: #f0f0f0;
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background: radial-gradient(circle, rgba(255,87,34,0.8), transparent); }
    50% { background: radial-gradient(circle, rgba(34,193,195,0.8), transparent); }
    100% { background: radial-gradient(circle, rgba(255,87,34,0.8), transparent); }
}

@keyframes rotate {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 文章展示 */
.article-section {
    padding: 100px 20px 50px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin: 50px 0;
}

.article-section h2, .article-section h3, .article-section h4 {
    font-family: 'Poppins', sans-serif;
    color: #ffd700;
}

.article-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
}

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

.article-section code {
    font-family: 'Courier New', Courier, monospace;
    color: #ffcc00;
}

/* 示例展示样式 */
.example-display {
    border: 2px dashed #ffcc00;
    padding: 20px;
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
    margin-top: 30px;
}

.example-display h3 {
    color: #ffcc00;
    margin-bottom: 10px;
}

.example-display pre {
    background: #2a2a2a;
    color: #f8f8f2;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

/* 图片样式 */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.images-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.images-grid img:hover {
    transform: scale(1.05);
}

/* 提示信息 */
.reference-note {
    text-align: center;
    font-size: 1rem;
    margin-top: 40px;
    color: #ffcc00;
    font-weight: bold;
}

/* 底部 */
footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 0;
    text-align: center;
    color: #ffffff;
    font-size: 0.9rem;
}

footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .footer-content p {
    margin: 5px 0;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }

    nav ul li {
        margin: 0 10px;
    }

    .article-section {
        padding: 80px 15px 40px 15px;
    }
}

@media (max-width: 1024px) {
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .article-section {
        padding: 60px 10px 30px 10px;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 8px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    nav ul li a {
        font-size: 1rem;
    }

    .article-section {
        padding: 50px 5px 20px 5px;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }

    footer .footer-content {
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 0.8rem;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    .article-section {
        padding: 40px 5px 15px 5px;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    }

    footer .footer-content {
        font-size: 0.7rem;
    }
}

