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

/* 页面背景设置 */
body {
    font-family: 'Roboto', 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #4a00e0, #8e2de2, #ff00c3);
    background-size: 300% 300%;
    animation: gradient-animation 15s ease infinite;
    color: #fff;
    line-height: 1.6;
}

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

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

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

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

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1em;
    position: relative;
    transition: color 0.3s ease;
}

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

nav a:hover {
    color: #ff00c3;
}

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

/* 主内容区样式 */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 文章展示区 */
.article-section {
    flex: 2;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.article-section h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #fff;
}

.article-section h3 {
    font-size: 1.5em;
    margin: 20px 0 10px;
    color: #e0e0e0;
}

.article-section p {
    margin-bottom: 15px;
}

.article-section pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

.article-section ul {
    list-style: disc inside;
    margin-bottom: 15px;
}

.article-section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.article-section table th,
.article-section table td {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    text-align: left;
}

.article-section table th {
    background: rgba(255, 255, 255, 0.2);
}

.article-section img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 5px;
    margin: 10px 0;
}

/* 侧边栏样式 */
.sidebar {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
}

.sidebar h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #fff;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: #ff00c3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar ul li a:hover {
    color: #4a00e0;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.3);
    margin-top: 50px;
    border-radius: 10px;
}

footer p {
    font-size: 1em;
    color: #ccc;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(90deg, #4a00e0, #ff00c3);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 20px rgba(0,0,0,0.3);
}

/* 响应式设计 */

/* 小尺寸手机 320px */
@media (max-width: 320px) {
    header h1 {
        font-size: 1.8em;
    }
    nav a {
        margin: 0 5px;
        font-size: 0.9em;
    }
    .main-content {
        flex-direction: column;
    }
}

/* 大尺寸手机 480px */
@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }
    header p {
        font-size: 1em;
    }
    nav a {
        font-size: 1em;
    }
}

/* 竖屏平板 768px */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    .article-section, .sidebar {
        width: 100%;
    }
}

/* 中等屏幕 1024px */
@media (max-width: 1024px) {
    header h1 {
        font-size: 2.2em;
    }
    .main-content {
        flex-direction: row;
    }
    .article-section, .sidebar {
        flex: 1;
    }
}

/* 桌面显示器 1200px */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

/* 大尺寸桌面显示器 1440px及以上 */
@media (min-width: 1440px) {
    header h1 {
        font-size: 3em;
    }
    nav a {
        font-size: 1.2em;
    }
    .article-section h2 {
        font-size: 2.5em;
    }
}

/* 动态极光背景效果 */
.background-aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
    animation: aurora-move 20s linear infinite;
}

@keyframes aurora-move {
    0% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-50px) translateY(-50px); }
    100% { transform: translateX(0) translateY(0); }
}

/* 提示信息样式 */
.tip-message {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 1em;
    color: #fff;
}

/* 代码示例高亮 */
.highlight-code {
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.highlight-code code {
    color: #ffcc00;
    font-family: 'Courier New', Courier, monospace;
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
}

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

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

.image-text div {
    flex: 2;
}

/* 表格响应式 */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-responsive table {
    width: 100%;
    min-width: 600px;
}

/* 图片集合样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.image-gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

/* 标题特效 */
.title-effect {
    background: linear-gradient(90deg, #4a00e0, #ff00c3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-text 5s ease infinite;
}

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

/* 链接按钮特效 */
.link-button {
    display: inline-block;
    padding: 10px 15px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
}

.link-button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
}

/* 文章区分样式 */
.sample-data {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-left: 5px solid #ff00c3;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* 图片响应式 */
.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* 按钮动画 */
@keyframes button-hover {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 隐藏链接下划线 */
a {
    text-decoration: none;
}

/* 鼠标悬停按钮效果 */
.button-hover:hover {
    animation: button-hover 0.5s infinite;
}

/* 标签样式 */
.tags {
    margin-top: 10px;
}

.tags span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    margin-right: 5px;
    font-size: 0.9em;
}

/* 视频响应式 */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 25px;
    height: 0;
    margin-bottom: 20px;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

