
/* 基本重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面背景与动画 */
body {
    background: linear-gradient(135deg, #0A192F, #2C3E50);
    color: #FFFFFF;
    font-family: 'Roboto Mono', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.3), transparent);
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

/* 容器布局 */
.container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    padding: 20px;
}

.sidebar {
    background: #2C3E50;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: #38E54D;
}

.main-content {
    background: #0A192F;
    padding: 20px;
    border-radius: 8px;
}

.main-content h1, 
.main-content h2, 
.main-content h3, 
.main-content h4 {
    font-family: 'Lora', serif;
    color: #FF6B35;
    margin-bottom: 10px;
}

.main-content p {
    margin-bottom: 15px;
}

.main-content ul, 
.main-content table {
    margin-bottom: 15px;
}

.main-content ul li {
    margin-left: 20px;
    position: relative;
}

.main-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #6C5CE7;
}

.code-block {
    background: #1E2A38;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Roboto Mono', monospace;
    color: #38E54D;
    margin-bottom: 15px;
}

pre {
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, 
table td {
    border: 1px solid #6C5CE7;
    padding: 10px;
    text-align: left;
}

table th {
    background: #2C3E50;
}

.button {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background: #FF6B35;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.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%);
    opacity: 0;
    transition: all 0.5s ease;
}

.button:hover::before {
    width: 200%;
    height: 200%;
    opacity: 1;
}

.button:hover {
    transform: scale(1.05);
}

img.decorative {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

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

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none;
    }
}

@media (max-width: 1024px) {
    .main-content {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .main-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .main-content h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 320px) {
    .main-content h1 {
        font-size: 1.2rem;
    }
}

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

a:hover {
    color: #38E54D;
    text-decoration: underline;
}

/* 提示信息样式 */
.reference-note {
    background: rgba(56, 229, 77, 0.1);
    padding: 10px;
    border-left: 5px solid #38E54D;
    margin-bottom: 20px;
    border-radius: 3px;
}

/* 页面提示样式 */
.page-note {
    text-align: center;
    font-size: 1.2rem;
    margin: 20px 0;
    color: #FF6B35;
}

/* 代码块内的高亮 */
.code-highlight {
    background: #1E2A38;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

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

table th, table td {
    border: 1px solid #6C5CE7;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #2C3E50;
}

@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    table tr {
        margin-bottom: 15px;
    }
    table td {
        position: relative;
        padding-left: 50%;
    }
    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 15px;
        font-weight: bold;
        white-space: nowrap;
    }
}

