
/* 基础样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #1cb5e0, #000046);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffdd57;
}

header p {
    font-size: 1.2em;
    color: #ffffff;
}

/* 导航菜单 */
nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1em;
    position: relative;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ffdd57;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

nav a:hover::after {
    width: 100%;
}

nav a[rel="nofollow"] {
    /* 内部链接样式 */
}

/* 主体内容 */
section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #1cb5e0;
}

section p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #d1e8ff;
}

section h3 {
    font-size: 1.8em;
    margin: 30px 0 20px;
    color: #ffa500;
}

pre {
    background: #1a2a3a;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

code {
    color: #00ffea;
    font-family: 'Courier New', Courier, monospace;
}

/* 按钮样式 */
.button {
    position: relative;
    display: inline-block;
    padding: 12px 30px;
    background-color: #1cb5e0;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #1687a7;
}

.button::before {
    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%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.button:hover::before {
    width: 200px;
    height: 200px;
}

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

/* 代码示例预览 */
.code-preview {
    background: #0f2027;
    padding: 20px;
    border-left: 5px solid #ffdd57;
    margin-bottom: 20px;
    border-radius: 5px;
}

.code-preview code {
    display: block;
    white-space: pre-wrap;
    word-break: break-all;
}

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

    section h2 {
        font-size: 2em;
    }

    nav a {
        margin: 0 10px;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }

    header h1 {
        font-size: 2.2em;
    }

    section h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 1024px) {
    nav {
        flex-direction: column;
    }

    nav a {
        margin: 10px 0;
    }

    section {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    section h2 {
        font-size: 1.5em;
    }

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

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    section h2 {
        font-size: 1.2em;
    }

    nav a {
        font-size: 0.9em;
    }

    pre {
        padding: 15px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.2em;
    }

    section h2 {
        font-size: 1em;
    }

    nav a {
        font-size: 0.8em;
    }

    .button {
        padding: 8px 16px;
        font-size: 0.8em;
    }
}

/* 动画与交互效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 2s ease-in;
}

/* 提示信息样式 */
.notice {
    text-align: center;
    font-size: 1em;
    color: #ffdd57;
    margin: 40px 0;
}

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

a:hover {
    text-decoration: underline;
}

