
/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局字体与色彩 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0A2463, #6F2EDD);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 头部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: rgba(10, 36, 99, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 1.8rem;
    color: #FFD700;
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    margin-left: 20px;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #FFD700;
}

/* 主视觉区 */
.hero {
    height: 100vh;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: aurora-move 15s linear infinite;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
}

.hero .btn {
    background-color: #FFD700;
    color: #000000;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero .btn:hover {
    background-color: #FFFFFF;
    transform: scale(1.05);
}

/* 创意矩阵 */
.matrix {
    padding: 60px 0;
    background: linear-gradient(135deg, #6F2EDD, #0A2463);
}

.matrix h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #FFD700;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.grid-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.grid-item h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #FFD700;
}

.grid-item p {
    font-size: 1rem;
    color: #FFFFFF;
}

/* 示例展示 */
.example-display {
    padding: 60px 0;
    background: rgba(10, 36, 99, 0.9);
}

.example-display h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #FFD700;
}

.article {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
}

.article h2, .article h3, .article h4 {
    color: #FFD700;
}

.article p, .article table, .article pre {
    color: #FFFFFF;
    margin-bottom: 20px;
}

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

.article table, .article th, .article td {
    border: 1px solid #FFD700;
}

.article th, .article td {
    padding: 10px;
    text-align: left;
}

.article pre {
    background: #0A2463;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article code {
    color: #FFD700;
}

/* 底部样式 */
footer {
    padding: 20px 0;
    background: rgba(10, 36, 99, 0.8);
    text-align: center;
    color: #FFFFFF;
}

footer p {
    font-size: 1rem;
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@media (max-width: 1200px) {
    header h1 {
        font-size: 1.5rem;
    }
    nav a {
        margin-left: 15px;
    }
}

@media (max-width: 1024px) {
    .hero h2 {
        font-size: 2rem;
    }
    .matrix h3, .example-display h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 80vh;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
    }
    nav {
        margin-top: 10px;
    }
    .grid-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 320px) {
    .hero h2 {
        font-size: 1.5rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .matrix h3, .example-display h3 {
        font-size: 1.5rem;
    }
}

