
/* 基础样式 */
body {
    background-color: #121212;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
}

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

/* 头部样式 */
header {
    background-color: #1E1E1E;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    color: #00C897;
    margin: 0;
}

/* 主要内容区域 */
main {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 文章样式 */
.article {
    flex: 2;
    min-width: 300px;
    background-color: #1A1A1A;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

.article h2, .article h3, .article h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: #FFD700;
}

.article p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.article pre {
    background-color: #1E1E1E;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

.article code {
    font-family: 'Courier New', Courier, monospace;
    color: #00C897;
    font-size: 14px;
}

/* 数据展示卡片 */
.data-cards {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background-color: #1E1E1E;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0,0,0,0.7);
}

.card h3 {
    color: #00B4D8;
    margin-top: 0;
}

.card p {
    color: #FFFFFF;
    margin: 10px 0;
}

.card ul {
    list-style: none;
    padding: 0;
}

.card ul li {
    background: #333333;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 5px;
}

/* 按钮样式 */
button, a.button-link {
    background-color: #00C897;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

button:hover, a.button-link:hover {
    background-color: #00B4D8;
}

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

/* 代码块样式 */
pre code {
    display: block;
    padding: 15px;
    background-color: #1E1E1E;
    border-radius: 8px;
    color: #FFD700;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
}

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

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

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

th {
    background-color: #00C897;
    color: #FFFFFF;
}

tr:nth-child(even) {
    background-color: #1A1A1A;
}

/* 提示信息样式 */
.reference-note {
    background-color: #333333;
    padding: 15px;
    border-left: 5px solid #FFD700;
    margin: 20px 0;
    border-radius: 5px;
    color: #FFFFFF;
}

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

@media (max-width: 1200px) {
    main {
        max-width: 900px;
    }
}

@media (max-width: 1024px) {
    main {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .data-cards {
        flex-direction: row;
        overflow-x: auto;
    }

    .card {
        min-width: 200px;
    }
}

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

    .article, .card {
        padding: 15px;
    }

    .article h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 320px) {
    .article, .card {
        padding: 10px;
    }

    .article h2 {
        font-size: 1.2em;
    }
}

/* 微动画 */
.button-ripple {
    position: relative;
    overflow: hidden;
}

.button-ripple::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

/* 链接样式 */
a {
    color: #00C897;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #00B4D8;
}

