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

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

/* 全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #FFFFFF;
    background: linear-gradient(135deg, #00008B, #8A2BE2, #4B0082);
    background-size: 200% 200%;
    animation: gradient-animation 15s ease infinite;
    overflow-x: hidden;
    padding: 20px;
}

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

/* 容器布局 */
.container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px;
}

/* 左侧装饰 */
.decorative {
    position: relative;
}

.decorative::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 50px;
    height: 100%;
    background: linear-gradient(180deg, rgba(138, 43, 226, 0.5), rgba(75, 0, 130, 0.5));
    border-radius: 25px;
    animation: move-lines 10s linear infinite;
}

@keyframes move-lines {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 主要内容区域 */
.main-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid #8A2BE2;
    padding-bottom: 10px;
    margin-top: 40px;
}

h3 {
    font-size: 1.75rem;
    margin-top: 30px;
}

h4 {
    font-size: 1.5rem;
    margin-top: 20px;
    color: #00FFFF;
}

/* 段落与列表 */
p {
    margin-bottom: 20px;
    color: #D3D3D3;
}

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

/* 链接样式 */
a {
    color: #00FFFF;
    text-decoration: none;
    position: relative;
}

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

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

a[rel="nofollow"] {
    /* 确保不显示任何提示 */
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #8A2BE2;
    border-radius: 50px;
    color: #FFFFFF;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

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

.button::before {
    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, height 0.5s;
}

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

/* 代码块样式 */
pre {
    background: #1E1E1E;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

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

/* 示例展示区 */
.example-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        padding: 30px;
    }
}

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

@media (max-width: 1024px) {
    .main-content {
        padding: 20px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
        gap: 20px;
    }

    .button {
        padding: 8px 16px;
    }
}

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

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .container {
        padding: 15px;
    }
}

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

    .button {
        padding: 6px 12px;
    }
}

