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

html, body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle, rgba(10,25,47,1) 0%, rgba(108,99,255,1) 100%);
    color: #D3D3D3;
}

/* 动画定义 */
@keyframes auroraMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes scanLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes textGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes loaderAnimation {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* 背景及整体布局 */
body {
    background: radial-gradient(circle, rgba(10,25,47,1) 0%, rgba(108,99,255,1) 100%);
    background-size: 400% 400%;
    animation: auroraMove 15s linear infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* 头部样式 */
header {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #6C63FF;
}

header h1 {
    font-size: 2.5rem;
    color: #6C63FF;
    animation: textGradient 5s infinite;
    background: linear-gradient(90deg, #0A192F, #6C63FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

.navbar a {
    color: #D3D3D3;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar a:hover {
    color: #6C63FF;
    transform: scale(1.1);
}

/* 主内容区域 */
.main-content {
    width: 100%;
    max-width: 1200px;
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 左侧内容 */
.left-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #D3D3D3;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.left-section h2 {
    color: #6C63FF;
    font-size: 1.8rem;
}

.left-section p {
    line-height: 1.6;
    font-size: 1rem;
}

/* 右侧内容 */
.right-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #D3D3D3;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.right-section h2 {
    color: #6C63FF;
    font-size: 1.8rem;
}

.right-section pre {
    background: #0A192F;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.right-section code {
    color: #32CD32;
    font-family: 'Courier New', Courier, monospace;
}

/* 示例展示区域 */
.sample-display {
    width: 100%;
    max-width: 1200px;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #6C63FF;
    margin: 30px 0;
}

.sample-display h2 {
    color: #6C63FF;
    font-size: 2rem;
    margin-bottom: 15px;
}

.sample-display article {
    color: #D3D3D3;
    line-height: 1.6;
}

.sample-display img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 5px;
}

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

table, th, td {
    border: 1px solid #6C63FF;
}

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

th {
    background: #6C63FF;
    color: #fff;
}

td {
    background: rgba(255, 255, 255, 0.1);
}

/* 动画元素 */
.loader {
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0A192F, #6C63FF);
    animation: scanLine 2s infinite;
    margin-top: 10px;
}

.button {
    background-color: #6C63FF;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
}

.button:hover {
    background-color: #3C32FF;
    transform: scale(1.05);
}

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

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    header h1 {
        font-size: 2rem;
    }
    .navbar a {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    .navbar {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    .navbar a {
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .main-content {
        padding: 10px;
    }
    .sample-display {
        padding: 15px;
    }
}

/* 提示信息样式 */
.annotation {
    width: 100%;
    max-width: 1200px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #6C63FF;
    text-align: center;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 20px;
}

