
/* 基础样式 */
body {
    font-family: 'Roboto Mono', monospace;
    background: linear-gradient(135deg, #121212, #0a0a0a);
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #4C9AFF;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

p {
    font-size: 1rem;
    color: #cccccc;
}

/* 全局布局 */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.header {
    background: linear-gradient(135deg, #1e1e1e, #282c34);
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #4C9AFF;
}

.header h1 {
    font-size: 2.5rem;
    margin: 0;
}

/* 模块化卡片设计 */
.card {
    background: linear-gradient(135deg, #1e1e1e, #282c34);
    color: #e0e0e0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

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

/* 代码块样式 */
pre {
    background: #1E1E1E;
    color: #4C9AFF;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

code {
    background: #282c34;
    color: #FFA500;
    padding: 2px 5px;
    border-radius: 3px;
}

/* 按钮样式 */
.button {
    background-color: #4C9AFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #1c7ac4;
}

/* 动画效果 */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.4s ease;
}

.ripple-effect:hover::before {
    width: 200px;
    height: 200px;
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    pre {
        font-size: 0.8rem;
    }
}

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

    p {
        font-size: 0.9rem;
    }
}

/* 额外装饰样式 */
.decorative-line {
    border-top: 2px solid #4C9AFF;
    margin: 20px 0;
}

.decorative-icon {
    fill: #4C9AFF;
    transition: all 0.3s ease;
}

.decorative-icon:hover {
    fill: #ffffff;
    filter: drop-shadow(0 0 10px #4C9AFF);
}

