
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #d9e7ff, #f0e4fa);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    animation: backgroundMove 15s linear infinite;
}

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

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

/* 头部 */
header {
    text-align: center;
    padding: 40px 0;
    position: relative;
}

header h1 {
    font-size: 3em;
    color: #4c6ef5;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    color: #666;
}

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

nav a {
    text-decoration: none;
    color: #4c6ef5;
    font-size: 1em;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #4c6ef5;
    left: 0;
    bottom: 0;
    transition: width 0.3s;
}

nav a:hover {
    color: #1c7ed6;
}

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

a[rel="nofollow"] {
    /* 内部链接不需要特殊样式 */
}

/* 主内容 */
main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* 文章内容 */
article {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

article h2 {
    font-size: 2em;
    color: #4c6ef5;
    margin-bottom: 20px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.1);
}

article h3 {
    font-size: 1.5em;
    color: #4c6ef5;
    margin-top: 30px;
    margin-bottom: 15px;
}

article h4 {
    font-size: 1.2em;
    color: #1c7ed6;
    margin-top: 20px;
    margin-bottom: 10px;
}

article p {
    margin-bottom: 15px;
    line-height: 1.8;
}

article pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

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

article img {
    width: 100%;
    border-radius: 10px;
    margin: 20px 0;
    object-fit: cover;
}

/* 示例展示 */
.example-display {
    background: rgba(245, 245, 245, 0.9);
    border-left: 4px solid #4c6ef5;
    padding: 15px 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.example-display h3 {
    font-size: 1.3em;
    color: #1c7ed6;
    margin-bottom: 10px;
}

.example-display p {
    font-style: italic;
    color: #555;
}

/* 侧边栏 */
aside {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

aside h3 {
    font-size: 1.5em;
    color: #4c6ef5;
    margin-bottom: 15px;
}

aside ul {
    list-style: none;
}

aside ul li {
    margin-bottom: 10px;
}

aside ul li a {
    color: #1c7ed6;
    text-decoration: none;
    transition: color 0.3s ease;
}

aside ul li a:hover {
    color: #4c6ef5;
}

/* 底部 */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    color: #777;
}

/* 按钮样式 */
.button {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(76, 110, 245, 0.8);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

.button:focus::before,
.button:active::before {
    width: 100%;
    height: 100%;
    opacity: 1;
}

/* 背景图片 */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-size: cover;
    background-position: center;
    filter: blur(5px) brightness(0.8);
    z-index: -1;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    main {
        grid-template-columns: 1fr 300px;
    }
}

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

@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr 200px;
    }
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }
    nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }
    .container {
        width: 95%;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.5em;
    }
    nav a {
        font-size: 0.9em;
    }
}

/* 滤镜与动画 */
@keyframes aurora-move {
    0% { background: radial-gradient(circle, rgb(255, 87, 34), transparent); }
    50% { background: radial-gradient(circle, rgb(34, 197, 94), transparent); }
    100% { background: radial-gradient(circle, rgb(255, 87, 34), transparent); }
}

.button {
    animation: aurora-move 15s linear infinite;
}

/* 代码块样式 */
pre code.css {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    display: block;
    overflow-x: auto;
    color: #d63384;
}

/* 提示信息 */
.info-banner {
    background: rgba(255, 255, 255, 0.9);
    border: 2px dashed #4c6ef5;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin: 20px 0;
    color: #555;
    font-style: italic;
}

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

a:hover {
    text-decoration: underline;
}

