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

body {
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    overflow-x: hidden;
    transition: background 0.5s ease;
}

/* 容器布局 */
.container {
    display: grid;
    grid-template-columns: 250px 1fr;
    height: 100vh;
}

/* 侧边导航栏 */
.sidebar {
    background-color: #1e1e1e;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.sidebar h1 {
    font-size: 24px;
    color: #00ff9f;
    margin-bottom: 30px;
}

.sidebar nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 15px 0;
    font-size: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.sidebar nav a:hover {
    color: #00ffff;
    transform: scale(1.05);
}

.sidebar .footer {
    font-size: 14px;
    color: #777777;
}

/* 主内容区 */
.main-content {
    margin-left: 250px;
    padding: 40px;
    background: rgba(18, 18, 18, 0.9);
    height: 100vh;
    overflow-y: auto;
    position: relative;
}

.main-content h2, .main-content h3, .main-content h4 {
    color: #00ff9f;
    margin-bottom: 20px;
}

.main-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.main-content pre {
    background: #2c5364;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.main-content code {
    color: #00ffff;
    font-family: 'Courier New', Courier, monospace;
}

/* 按钮样式 */
button {
    background-color: #00ff9f;
    color: #000000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
    font-size: 16px;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 255, 159, 0.8);
}

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

/* 提示信息 */
.reference-note {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 255, 159, 0.8);
    color: #000000;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
}

/* 代码示例样式 */
.code-example {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.code-example code {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #00ffff;
    font-size: 14px;
    line-height: 1.5;
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #0f2027);
    background-size: 400% 400%;
    animation: aurora-move 15s linear infinite;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .main-content {
        padding: 30px;
    }
}

@media (max-width: 1200px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
        padding: 25px;
    }

    .sidebar h1 {
        font-size: 20px;
    }

    .sidebar nav a {
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 180px;
    }

    .main-content {
        margin-left: 180px;
        padding: 20px;
    }

    .sidebar h1 {
        font-size: 18px;
    }

    .sidebar nav a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-around;
    }

    .sidebar nav a {
        margin: 10px 5px;
        font-size: 14px;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .sidebar h1 {
        display: none;
    }

    .sidebar nav a {
        font-size: 12px;
    }

    .main-content h2 {
        font-size: 22px;
    }

    .main-content h3 {
        font-size: 20px;
    }

    .main-content p {
        font-size: 14px;
    }

    button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .sidebar nav a {
        font-size: 10px;
    }

    .main-content h2 {
        font-size: 20px;
    }

    .main-content h3 {
        font-size: 18px;
    }

    .main-content p {
        font-size: 12px;
    }

    button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 滚动条样式 */
.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: #2c5364;
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb {
    background-color: #00ff9f;
    border-radius: 4px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #00ff9f;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #1e1e1e;
}

td {
    background-color: #2c5364;
}

/* 链接样式 */
a[rel="nofollow"] {
    color: #00ffff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a[rel="nofollow"]:hover {
    color: #00ff9f;
}

/* 毛玻璃效果 */
.glass-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
}

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

/* 按钮动画 */
@keyframes button-glow {
    0% {
        box-shadow: 0 0 5px #00ff9f;
    }
    50% {
        box-shadow: 0 0 20px #00ffff;
    }
    100% {
        box-shadow: 0 0 5px #00ff9f;
    }
}

button {
    animation: button-glow 3s infinite;
}

/* 折叠导航栏（移动端） */
@media (max-width: 768px) {
    .sidebar.collapsed {
        display: none;
    }

    .toggle-button {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        background-color: #00ff9f;
        color: #000000;
        border: none;
        padding: 10px;
        border-radius: 5px;
        cursor: pointer;
        z-index: 1000;
    }
}

.toggle-button {
    display: none;
}

