
/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Roboto+Mono&display=swap');

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #8e9eab, #eef2f3);
    background-size: cover;
    color: #ffffff;
    transition: background 0.5s ease;
}

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

/* 头部 */
header {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.37);
    margin-bottom: 40px;
    animation: fadeIn 2s ease-out;
}

header h1 {
    font-family: 'Roboto Mono', monospace;
    font-size: 3em;
    color: #6c7ae0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    animation: slideDown 1s forwards;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 文章内容 */
article {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.37);
    animation: popIn 1.5s ease-out;
}

@keyframes popIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

article h2, article h3, article h4 {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin-bottom: 15px;
}

article p, article ul {
    line-height: 1.6;
    margin-bottom: 15px;
}

article ul {
    list-style: disc inside;
    margin-left: 20px;
}

article pre {
    background: rgba(0,0,0,0.6);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Roboto Mono', monospace;
    color: #00ff00;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

article code {
    background: rgba(0,0,0,0.5);
    padding: 2px 4px;
    border-radius: 4px;
}

/* 按钮 */
.button {
    background: #ff69b4;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,105,180,0.4);
    position: relative;
    overflow: hidden;
}

.button:hover {
    background: #db3173;
    transform: scale(1.05);
}

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

.button:hover::after {
    width: 200px;
    height: 200px;
}

/* 图像 */
img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    margin: 10px;
    transition: transform 0.3s ease;
}

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

/* 提示 */
.reference {
    text-align: center;
    font-size: 1.2em;
    margin: 20px 0;
    color: #a0a0a0;
}

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

@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }
}

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

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    article {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }
    .button {
        padding: 10px 20px;
    }
}

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