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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0D47A1, #1E88E5);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 容器和分屏布局 */
.container {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100%;
}

.left-screen, .right-screen {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.left-screen {
    background: radial-gradient(circle, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%);
}

.right-screen {
    background: radial-gradient(circle, rgba(255,87,34,1) 0%, rgba(255,193,7,1) 100%);
}

/* 头部导航栏 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

header nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 15px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #FFD700;
}

/* 标题和内容样式 */
h1, h2, h3, h4 {
    margin-bottom: 15px;
    font-weight: bold;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

pre {
    background: #263238;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

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

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

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

th {
    background: #37474F;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FF9800;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* 图片样式 */
img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin-bottom: 15px;
}

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

.animated-background {
    animation: aurora-move 15s linear infinite;
    background: radial-gradient(circle, rgba(255,87,34,1), rgba(0,0,0,0));
}

/* 示例展示区样式 */
.demo-article {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.demo-article h2, .demo-article h3, .demo-article h4 {
    color: #FFD700;
}

.demo-article code {
    background: #1E88E5;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 1200px) {
    .container {
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    header .logo {
        font-size: 1.2rem;
    }
    header nav a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    .button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    header nav {
        margin-top: 10px;
    }
    h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.2rem;
    }
    .button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* 固定提示信息样式 */
.footer-note {
    position: fixed;
    bottom: 10px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

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

a:hover {
    text-decoration: underline;
}

/* 保证代码块内不出现横向滚动条 */
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

