
/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400&display=swap');

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0044ff, #8f00ff, #ff6f00);
    background-size: 300% 300%;
    animation: gradient-animation 15s ease infinite;
    color: #ffffff;
}

@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: 0 auto;
    padding: 20px;
}

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

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.2em;
    margin-top: 0;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 15px 30px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 1em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
    text-decoration: none;
}

.button:hover {
    background: rgba(255, 255, 255, 0.4);
}

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

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

@keyframes ripple {
    from {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    to {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* 卡片模块 */
.card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.2);
}

/* 标题样式 */
h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
}

h3 {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
}

/* 段落样式 */
p {
    line-height: 1.6;
    letter-spacing: 0.5px;
    font-size: 1em;
    color: #f0f0f0;
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #00ffea;
    font-size: 0.95em;
}

/* 示例展示区 */
.sample-article {
    background: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #00c6ff;
    padding: 20px;
    border-radius: 5px;
    margin: 40px 0;
}

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

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

/* 视差效果 */
.parallax {
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
    margin: 40px 0;
}

/* 统一链接样式 */
a {
    color: #00c6ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 1024px) {
    .parallax {
        height: 400px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    .button {
        padding: 12px 25px;
    }
}

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

@media (max-width: 320px) {
    body {
        padding: 10px;
    }
    .button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

