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

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根元素字体设置 */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Body样式 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #001f3f 0%, #0d1b2a 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 标题样式 */
h1, h2, h3 {
    font-family: 'Futura', sans-serif;
    color: #00ffe7;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 20px;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid #00ffe7;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5rem;
    margin-top: 30px;
}

/* 段落样式 */
p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #d1d1d1;
}

/* 链接样式 */
a {
    color: #00ffe7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 按钮样式 */
button, .btn {
    background-color: #00ff90;
    color: #001f3f;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Futura', sans-serif;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover, .btn:hover {
    background-color: #00e9ab;
    transform: scale(1.05);
}

/* 卡片样式 */
.card {
    background: rgba(44, 62, 80, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

/* 代码块样式 */
pre {
    background: #1e272e;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Roboto Mono', monospace;
    color: #00ffe7;
    margin-bottom: 20px;
}

code {
    font-family: 'Roboto Mono', monospace;
    color: #00ffe7;
}

/* 示例展示样式 */
.example-display {
    background: rgba(75, 0, 130, 0.9);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.example-display h2 {
    color: #ff4081;
    text-align: center;
    margin-bottom: 20px;
}

.example-display article {
    color: #ffffff;
}

/* 数据展示卡片 */
.data-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.data-card {
    background: rgba(44, 62, 80, 0.9);
    border-radius: 15px;
    padding: 20px;
    width: 48%;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.data-card h3 {
    color: #00ffe7;
    margin-bottom: 10px;
}

.data-card p {
    color: #d1d1d1;
    margin-bottom: 10px;
}

/* 图文并茂布局 */
.image-text-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 40px;
}

.image-text-section img {
    width: 50%;
    margin-right: 20px;
}

.image-text-section div {
    width: 50%;
}

/* 动态粒子背景 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #00ffe7;
    border-radius: 50%;
    animation: floating 10s infinite linear;
}

@keyframes floating {
    from {
        transform: translateY(0) translateX(0);
        opacity: 1;
    }
    to {
        transform: translateY(-1000px) translateX(500px);
        opacity: 0;
    }
}

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

    h2 {
        font-size: 1.8rem;
    }

    .image-text-section img, .image-text-section div {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 1200px) {
    .data-card {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .image-text-section {
        flex-direction: column;
    }

    .image-text-section img, .image-text-section div {
        width: 100%;
    }
}

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

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .container {
        padding: 20px 0;
    }

    .data-card {
        width: 100%;
    }
}

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

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .image-text-section img, .image-text-section div {
        width: 100%;
    }
}

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

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* 按钮动画 */
@keyframes aurora-move {
    0% {
        background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    }
    50% {
        background: radial-gradient(circle, rgb(34, 255, 87), transparent);
    }
    100% {
        background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    }
}

.button-animated {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
}

/* 阴影效果 */
.shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* 浮动卡片效果 */
.floating-card {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translatey(0px);
    }
    50% {
        transform: translatey(-20px);
    }
    100% {
        transform: translatey(0px);
    }
}

