
/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Futura:wght@400;700&display=swap');

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #8E2DE2, #4A00E0);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* 标题样式 */
.header-title {
    text-align: center;
    font-size: 3rem;
    font-family: 'Futura', sans-serif;
    background: -webkit-linear-gradient(#FFC300, #DAF7A6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 20px 0;
    position: relative;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}

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

.navbar a:hover::after {
    width: 100%;
}

.navbar a:hover {
    color: #FFC300;
}

/* 主内容区域 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 文章样式 */
article {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

article h2, article h3, article h4 {
    font-family: 'Futura', sans-serif;
    color: #DAF7A6;
}

article pre {
    background: #2d2d2d;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

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

.example-data h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.data-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.data-item h3 {
    font-size: 1.5rem;
    color: #FFC300;
}

.data-item p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.data-item img {
    width: 100%;
    max-width: 320px;
    border-radius: 5px;
}

/* 图片布局 */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.images-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* 脚注 */
.footer {
    text-align: center;
    padding: 20px 0;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.3);
    margin-top: auto;
}

/* 按钮样式 */
.button {
    position: relative;
    overflow: hidden;
    background-color: #4A00E0;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-size: 1rem;
}

.button::after {
    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%);
    opacity: 0;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #8E2DE2;
}

.button:hover::after {
    width: 200%;
    height: 200%;
    opacity: 1;
}

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

@media (max-width: 1200px) {
    .navbar a {
        font-size: 1rem;
    }
    
    article h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .main-content {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    .header-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.8rem;
    }

    .navbar a {
        font-size: 0.9rem;
    }

    article h2 {
        font-size: 2rem;
    }

    .example-data h2 {
        font-size: 2rem;
    }
}

@media (max-width: 320px) {
    .header-title {
        font-size: 1.5rem;
    }

    .navbar a {
        font-size: 0.8rem;
    }

    article h2 {
        font-size: 1.5rem;
    }

    .example-data h2 {
        font-size: 1.5rem;
    }
}

