
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Montserrat', sans-serif;
    background: radial-gradient(circle, rgba(10,31,68,1) 0%, rgba(28,28,30,1) 100%);
    color: #ffffff;
    line-height: 1.6;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部 */
header {
    text-align: center;
    padding: 50px 20px;
    background: rgba(28,28,30,0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

header h1 {
    font-size: 2.5em;
    color: #D3D3D3;
    margin-bottom: 10px;
}

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

/* 重要提示 */
.reference {
    text-align: center;
    font-size: 1.2em;
    color: #ffffff;
    margin: 20px 0;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 文章 */
article {
    background: rgba(28,28,30, 0.7);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.37);
    margin-bottom: 40px;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

article h2 {
    font-size: 2em;
    color: #39FF14;
    margin-bottom: 20px;
}

article h3, article h4 {
    color: #673AB7;
    margin-top: 20px;
}

article p {
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.8;
}

article pre {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    color: #39FF14;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

article code {
    color: #39FF14;
    background: rgba(255,255,255,0.05);
    padding: 2px 4px;
    border-radius: 3px;
}

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

article table, article th, article td {
    border: 1px solid #39FF14;
}

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

article th {
    background-color: rgba(103, 58, 183, 0.7);
    color: #ffffff;
}

article td {
    background-color: rgba(28,28,30,0.5);
    color: #ffffff;
}

/* 列表 */
article ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

article li {
    margin-bottom: 10px;
    color: #ffffff;
}

/* 按钮 */
.btn {
    background: linear-gradient(135deg, #673AB7, #39FF14);
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
}

.btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #39FF14, #673AB7);
}

/* 图像 */
img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    margin: 10px;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

/* 自适应网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

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

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

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

    article h2 {
        font-size: 1.8em;
    }

    .btn {
        padding: 9px 18px;
        font-size: 15px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }

    article {
        padding: 25px;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 40px 15px;
    }

    article {
        padding: 20px;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    article h2 {
        font-size: 1.5em;
    }

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

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

    article h2 {
        font-size: 1.2em;
    }

    .btn {
        padding: 7px 14px;
        font-size: 13px;
    }

    article table, article th, article td {
        font-size: 12px;
    }
}

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

    article h2 {
        font-size: 1em;
    }

    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    article table, article th, article td {
        font-size: 10px;
    }
}

/* 额外视觉效果 */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* 防止代码块横向滚动 */
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

