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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    animation: backgroundAnimation 30s ease infinite;
}

/* 背景动画 */
@keyframes backgroundAnimation {
    0% { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
    50% { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
    100% { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin-bottom: 30px;
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradient 10s ease infinite;
}

@keyframes textGradient {
    0% { background: linear-gradient(45deg, #ff7e5f, #feb47b); }
    50% { background: linear-gradient(45deg, #6a11cb, #2575fc); }
    100% { background: linear-gradient(45deg, #ff7e5f, #feb47b); }
}

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

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    position: relative;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #1e90ff;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

nav a:hover::after {
    width: 100%;
}

/* 主内容区 */
.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* 文章样式 */
article {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
}

article h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

article h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #1e90ff;
}

article h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #ff7e5f;
}

article p {
    margin-bottom: 15px;
}

article pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
}

article code {
    font-family: 'Courier New', Courier, monospace;
    color: #f92672;
}

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

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

table th {
    background: #1e90ff;
    color: white;
}

table tr:nth-child(even) {
    background: #f2f2f2;
}

/* 图片样式 */
img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

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

/* 按钮样式 */
.cta-button {
    background: #1e90ff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #4682b4;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
}

.bottom-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    position: relative;
}

.bottom-nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ff7e5f;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.bottom-nav a:hover::after {
    width: 100%;
}

/* 响应式设计 */
@media (min-width: 320px) {
    header h1 {
        font-size: 2em;
    }
}

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

@media (min-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }

    nav {
        justify-content: space-around;
    }
}

@media (min-width: 1024px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }

    header {
        padding: 60px 40px;
    }
}

@media (min-width: 1200px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
    }

    body {
        padding: 40px;
    }
}

@media (min-width: 1440px) {
    .container {
        grid-template-columns: repeat(5, 1fr);
    }

    header h1 {
        font-size: 3em;
    }
}

/* 交互动效 */
button, .cta-button {
    position: relative;
    overflow: hidden;
}

button::after, .cta-button::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.8s ease;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
}

button:hover::after, .cta-button:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
}

/* 粒子背景 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background: url('https://images.gptkong.com/demo/sample12.png') repeat;
    animation: particlesMove 60s linear infinite;
}

@keyframes particlesMove {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

