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

body {
    background: linear-gradient(135deg, #1e1e1e, #121212);
    color: #ffffff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    color: #4c6eff;
    margin-bottom: 15px;
    font-weight: bold;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-top: 20px;
}

h2 {
    font-size: 2em;
    margin-top: 30px;
}

h3 {
    font-size: 1.75em;
    margin-top: 25px;
}

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

/* 链接样式 */
a {
    color: #9f5de2;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4c6eff;
}

/* 按钮样式 */
button, .button {
    background: linear-gradient(135deg, #4c6eff, #9f5de2);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

button:hover, .button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #9f5de2, #4c6eff);
}

/* 卡片样式 */
.card {
    background-color: rgba(30, 30, 30, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin: 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 背景装饰 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample3.png') no-repeat center center/cover;
    opacity: 0.1;
    z-index: -1;
}

/* 图文并茂布局 */
.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.content .text {
    flex: 1 1 45%;
    margin-bottom: 20px;
}

.content .image {
    flex: 1 1 45%;
    margin-bottom: 20px;
}

.content img {
    width: 100%;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

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

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

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

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

@media (max-width: 1200px) {
    .content .text, .content .image {
        flex: 1 1 100%;
    }
}

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

    h2 {
        font-size: 1.75em;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.75em;
    }

    .card {
        padding: 15px;
    }
}

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

    .content .text, .content .image {
        flex: 1 1 100%;
    }
}

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

    p {
        font-size: 0.9em;
    }
}

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

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* 按钮动效 */
.button-animated {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: #ffffff;
    background: linear-gradient(135deg, #4c6eff, #9f5de2);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.3s ease;
}

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

.button-animated:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.button-animated:hover {
    background: linear-gradient(135deg, #9f5de2, #4c6eff);
}

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

/* 提示信息 */
.notice {
    background-color: rgba(30, 30, 30, 0.8);
    padding: 15px;
    border-left: 5px solid #4c6eff;
    margin: 20px 0;
    border-radius: 3px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #333;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #2c2c2c;
    color: #4c6eff;
}

td {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

/* 引用样式 */
blockquote {
    border-left: 5px solid #4c6eff;
    padding-left: 15px;
    color: #cccccc;
    margin: 20px 0;
    font-style: italic;
}

/* 列表样式 */
ul, ol {
    margin: 20px 0;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
    color: #e0e0e0;
}

