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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #d1d1d1;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

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

h2 {
    font-size: 2rem;
    margin-top: 40px;
}

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

h4 {
    font-size: 1.5rem;
    margin-top: 25px;
}

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

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

li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2a5298;
}

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

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

th {
    background: #2a5298;
    color: #fff;
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

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

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

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

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

a:hover {
    color: #ffffff;
}

/* 微交互效果 */
button, .btn {
    background: #2a5298;
    border: none;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    border-radius: 5px;
}

button:hover, .btn:hover {
    transform: scale(1.05);
    background: #1e3c72;
}

button:active, .btn:active {
    transform: scale(0.95);
}

/* 渐变按钮 */
.gradient-btn {
    background: linear-gradient(45deg, #1e3c72, #2a5298, #7f00ff);
    background-size: 300% 300%;
    animation: gradientAnimation 5s ease infinite;
}

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

/* 响应式布局 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

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

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    h1 {
        font-size: 1.6rem;
    }
    h2 {
        font-size: 1.2rem;
    }
}

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

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

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

/* 分隔线样式 */
.separator {
    width: 100%;
    height: 2px;
    background: #2a5298;
    margin: 40px 0;
}

/* 提示信息样式 */
.notice {
    background: rgba(46, 134, 222, 0.1);
    border-left: 5px solid #2a5298;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 3px;
}

/* 背景动画 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.gptkong.com/demo/sample5.png');
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.8), rgba(42, 82, 152, 0.8));
    z-index: -1;
}

/* 动画光晕效果 */
.glow-effect {
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(255, 255, 255, 1);
    }
}

/* 按钮动画 */
button, .btn {
    position: relative;
    overflow: hidden;
}

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

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