
/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局字体与背景 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #120E43, #5F72BE);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

/* 渐变动画 */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 容器设置 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: radial-gradient(circle, rgba(255,135,34,0.8), transparent);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 48px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    margin-top: 20px;
    font-size: 18px;
}

/* 导航栏样式 */
nav {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #FFD369;
}

/* 内容区域 */
.content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.content section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.content h2, .content h3, .content h4 {
    color: #C7ECE4;
    margin-bottom: 15px;
}

.content p {
    margin-bottom: 15px;
    font-size: 16px;
}

.content pre {
    background: #28313B;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.content code {
    color: #75DAAD;
    font-family: 'Courier New', Courier, monospace;
}

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

table th, table td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: left;
}

table th {
    background: #485461;
}

table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

/* 按钮样式 */
.button {
    background: linear-gradient(90deg, #4A69BD, #82CCDD);
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.button:hover {
    transform: scale(1.1);
    background: linear-gradient(90deg, #82CCDD, #4A69BD);
}

/* 图标样式 */
.icon {
    width: 50px;
    height: 50px;
    fill: url(#icon-gradient);
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: scale(1.2) rotate(10deg);
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 示例展示区域 */
.sample-article {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.sample-article h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.sample-article p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* 移动端适配 */
@media (max-width: 320px) {
    header h1 {
        font-size: 32px;
    }
    nav ul li a {
        font-size: 16px;
    }
    .button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 36px;
    }
    .content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 20px;
    }
    .content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1200px) {
    .content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1440px) {
    header h1 {
        font-size: 54px;
    }
    .button {
        padding: 15px 40px;
        font-size: 18px;
    }
}

