
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #333333;
    line-height: 1.6;
}

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

/* Hero Banner */
.hero {
    background: radial-gradient(circle, rgba(255,87,34,0.8), transparent);
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    animation: aurora-move 15s linear infinite;
}

.hero h1 {
    font-size: 3rem;
    margin: 0;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 10px;
}

/* 卡片布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

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

.card img {
    width: 50px;
    height: 50px;
}

.card h3 {
    margin-top: 10px;
    font-size: 1.5rem;
}

.card p {
    margin: 10px 0;
}

.card .button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #ff9800;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.card .button:hover {
    background-color: #e68900;
}

/* 示例展示文章 */
.article-section {
    margin: 40px 0;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
}

.article-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.article-section p,
.article-section ul,
.article-section table {
    margin-bottom: 20px;
}

.article-section pre {
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.article-section code {
    font-family: 'Courier New', Courier, monospace;
}

.article-section table {
    width: 100%;
    border-collapse: collapse;
}

.article-section table, 
.article-section th, 
.article-section td {
    border: 1px solid #dddddd;
}

.article-section th, 
.article-section td {
    padding: 8px;
    text-align: left;
}

/* Footer */
footer {
    background-color: #2a5298;
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

/* 提示文字 */
.reference-note {
    text-align: center;
    font-size: 1rem;
    margin-top: 20px;
    color: #ffffff;
}

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

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.card {
    animation: slideIn 0.6s ease-in-out forwards;
}

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

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 1024px) {
    .hero {
        height: 50vh;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 320px) {
    .card h3 {
        font-size: 1rem;
    }
}

