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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0F2027, #203A43, #2C5364);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    z-index: 1000;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s;
}

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

/* 主内容区域 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 20px;
}

/* 文章样式 */
.article {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.article h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #00FFFF, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.article h3, .article h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #00FFFF;
}

.article p {
    margin-bottom: 20px;
    font-size: 1em;
}

.article pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 25px;
    margin: 10px 0;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700, 0 0 30px #FFD700;
    transition: transform 0.2s, box-shadow 0.3s;
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #FFD700, 0 0 30px #FFD700, 0 0 40px #FFD700;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h4 {
    margin-bottom: 10px;
    color: #FFA500;
}

.card pre {
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

/* 示例数据展示 */
.sample-data {
    margin-top: 50px;
}

.sample-data h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #00FFFF;
}

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

.sample-note {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #FFD700;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        max-width: 1024px;
    }
}

@media (max-width: 1200px) {
    .navbar {
        padding: 10px 20px;
    }

    .article {
        padding: 20px;
    }
}

@media (max-width: 1024px) {
    .sample-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar a {
        margin: 0 10px;
        font-size: 0.9em;
    }

    .article h2 {
        font-size: 2em;
    }

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

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar a {
        margin: 5px 0;
    }

    .container {
        margin: 90px 10px 30px;
    }

    .article h2 {
        font-size: 1.8em;
    }

    .sample-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 320px) {
    .navbar {
        padding: 8px 15px;
    }

    .article {
        padding: 15px;
    }

    .button {
        padding: 6px 15px;
        font-size: 0.8em;
    }
}

/* 动画效果 */
@keyframes ripple {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.ripple-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%);
    animation: ripple 0.6s ease-out;
    opacity: 0;
}

.ripple-button:active::after {
    width: 100px;
    height: 100px;
    opacity: 1;
}


