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

body {
    font-family: 'Roboto Mono', monospace, 'FangSong', sans-serif;
    background: linear-gradient(135deg, #0A1F44, #8E44AD);
    color: white;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* 标题与副标题样式 */
h1 {
    font-size: 2.5em;
    letter-spacing: 3px;
    text-align: center;
    margin: 20px 0;
    background: linear-gradient(to right, #FF6F61, #8E44AD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2em;
    margin: 15px 0;
    color: #FF6F61;
}

h3 {
    font-size: 1.7em;
    margin: 10px 0;
    color: #8E44AD;
}

/* 段落样式 */
p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    margin: 10px 0;
    text-indent: 2em;
}

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

.sidebar {
    background-color: rgba(44, 44, 44, 0.8);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.content {
    background-color: rgba(10, 31, 68, 0.8);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 卡片样式 */
.card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 111, 97, 0.5);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(255, 111, 97, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::after {
    opacity: 1;
}

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

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

.button-primary:hover {
    background-color: #8E44AD;
    transform: scale(1.1);
}

.button-secondary {
    background-color: #2C2C2C;
    color: white;
    border: 1px solid white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button-secondary:hover {
    background-color: #FF6F61;
    transform: scale(1.1);
}

/* 代码块样式 */
pre {
    background-color: rgba(44, 44, 44, 0.8);
    color: #FF6F61;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Roboto Mono', monospace;
    margin: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

code {
    color: #8E44AD;
    font-weight: bold;
}

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

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.5em;
    }

    p {
        font-size: 0.9em;
    }
}

/* 提示信息样式 */
.tip {
    text-align: center;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
    margin: 20px 0;
}

