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

/* 全局字体设置 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    line-height: 1.6;
    padding: 20px;
}

/* 标题字体设置 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    margin-bottom: 20px;
}

/* 主标题样式 */
h1 {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}

/* 副标题样式 */
h2 {
    font-size: 2rem;
    margin-top: 40px;
    position: relative;
}

h2::after {
    content: '';
    width: 50px;
    height: 4px;
    background: #ff69b4;
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* 段落样式 */
p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #e0e0e0;
    text-align: justify;
}

/* 列表样式 */
ul {
    list-style: disc inside;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
}

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

a:hover {
    text-decoration: underline;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #ff69b4;
    color: #fff;
    border-radius: 25px;
    text-align: center;
    transition: background 0.3s ease;
}

.button:hover {
    background: #e63946;
}

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

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

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

/* 卡片内部元素 */
.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.card p {
    font-size: 1rem;
    color: #e0e0e0;
}

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

body {
    background: radial-gradient(circle, rgba(255,87,34,1) 0%, rgba(101, 23, 230, 0) 70%);
    animation: aurora-move 15s linear infinite;
}

/* 响应式设计 */

/* 320px 及以下 */
@media (max-width: 320px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    p {
        font-size: 0.9rem;
    }
}

/* 480px */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    p {
        font-size: 1rem;
    }
}

/* 768px */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2rem;
    }
}

/* 1024px */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    h1 {
        font-size: 3.5rem;
    }
    h2 {
        font-size: 2.25rem;
    }
}

/* 1200px */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    h1 {
        font-size: 4rem;
    }
    h2 {
        font-size: 2.5rem;
    }
}

/* 1440px 及以上 */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    h1 {
        font-size: 4.5rem;
    }
    h2 {
        font-size: 3rem;
    }
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

/* 动画效果 */
.element:hover::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* 示例展示样式 */
.sample-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    margin-top: 50px;
}

.sample-display h2 {
    color: #ff69b4;
    text-align: center;
}

.sample-display article {
    margin-top: 20px;
}

.sample-display article pre {
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
}

.sample-display img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* 图文并茂布局 */
.image-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 40px;
}

.image-text img {
    flex: 1 1 300px;
    margin-right: 20px;
    max-width: 100%;
    border-radius: 10px;
}

.image-text div {
    flex: 2 1 500px;
}

/* 悬浮气泡样式 */
.bubble {
    position: relative;
    display: inline-block;
}

.bubble::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #ff69b4 transparent;
}

