
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #ffffff;
    line-height: 1.6;
    box-sizing: border-box;
    overflow-x: hidden;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background: linear-gradient(135deg, #6a11cb, #2575fc);
    }
    50% {
        background: linear-gradient(135deg, #2575fc, #ff9a9e);
    }
    100% {
        background: linear-gradient(135deg, #6a11cb, #2575fc);
    }
}

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

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
}

header h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 3em;
    margin-bottom: 10px;
    color: #ffffff;
}

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

/* 导航栏 */
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1em;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    color: #ff9a9e;
    transform: scale(1.1);
}

/* 主内容 */
main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    flex: 1 1 300px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 图像样式 */
.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* 标题样式 */
.card h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #ff9a9e;
}

/* 段落样式 */
.card p {
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    color: #ffffff;
}

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

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

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

th {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ff9a9e;
}

td {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00ffea;
}

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

/* 动画效果 */
@keyframes star-twinkle {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.background-stars {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    animation: star-twinkle 2s infinite;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 154, 158, 0.8);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

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

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

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

    nav a {
        font-size: 0.9em;
    }

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

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

    .button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

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

a:hover {
    text-decoration: underline;
}

/* 信息提示 */
.info-note {
    text-align: center;
    font-size: 1em;
    color: #d1c4e9;
    margin: 30px 0;
}

/* 文章示例展示样式 */
.article-example {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin: 40px 0;
}

.article-example h2 {
    font-family: 'Nunito', sans-serif;
    color: #ff9a9e;
}

.article-example h3 {
    font-family: 'Nunito', sans-serif;
    color: #ffffff;
}

.article-example p {
    color: #ffffff;
}

.article-example table {
    background-color: rgba(0, 0, 0, 0.2);
}

.article-example th, .article-example td {
    color: #ffffff;
}

.article-example pre {
    background: rgba(0, 0, 0, 0.7);
    color: #00ffea;
}

