
/* 页面全局基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000814, #001233);
    color: #ffffff;
    overflow-x: hidden;
}

/* 背景星河效果 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') repeat;
    background-size: cover;
    z-index: -1;
    animation: moveBackground 60s linear infinite;
}

@keyframes moveBackground {
    from { transform: translate(0, 0); }
    to { transform: translate(-1000px, 0); }
}

/* 主要容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* 标题样式 */
.title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin: 40px 0;
    background: linear-gradient(to right, #8e44ad, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 内容卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 20px;
    margin: 20px 0;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    filter: blur(2px);
}

/* 子标题样式 */
.card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ffffff;
}

/* 正文段落样式 */
.card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #dddddd;
}

/* 代码块样式 */
code {
    display: block;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00ff00;
    margin: 20px 0;
}

code::selection {
    background: #555555;
}

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

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

a:hover {
    text-decoration: underline;
}

/* 自适应布局 - 手机 */
@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    .card h2 {
        font-size: 1.5rem;
    }
    .card p {
        font-size: 0.9rem;
    }
}

/* 自适应布局 - 平板 */
@media (min-width: 481px) and (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    .card h2 {
        font-size: 1.8rem;
    }
    .card p {
        font-size: 0.95rem;
    }
}

/* 自适应布局 - 中等屏幕 */
@media (min-width: 769px) and (max-width: 1024px) {
    .title {
        font-size: 2.8rem;
    }
    .card h2 {
        font-size: 2rem;
    }
    .card p {
        font-size: 1rem;
    }
}

/* 自适应布局 - 大屏幕 */
@media (min-width: 1025px) and (max-width: 1440px) {
    .title {
        font-size: 3rem;
    }
    .card h2 {
        font-size: 2.2rem;
    }
    .card p {
        font-size: 1.1rem;
    }
}

/* 自适应布局 - 超大屏幕 */
@media (min-width: 1441px) {
    .title {
        font-size: 3.5rem;
    }
    .card h2 {
        font-size: 2.5rem;
    }
    .card p {
        font-size: 1.2rem;
    }
}

/* 提示信息样式 */
.notice {
    text-align: center;
    font-size: 1rem;
    margin: 30px 0;
    color: #ffcc00;
}

/* 过渡效果 */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 为链接添加 nofollow 属性的样式示例 */
/* a[rel="nofollow"] { /* 样式不需要改变 */ }

/* 其他视觉效果 */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    animation: sparkle 2s infinite ease-in-out;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* 磨砂玻璃卡片的内部排版 */
.card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 响应式图片布局 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.image-gallery img {
    flex: 1 1 calc(33.333% - 20px);
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 代码高亮 */
pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00ff00;
}

/* 卡片翻转效果 */
.card-flip {
    perspective: 1000px;
}

.card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-flip:hover .card-flip-inner {
    transform: rotateY(180deg);
}

.card-flip-front, .card-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
}

.card-flip-back {
    transform: rotateY(180deg);
}

/* 滤镜效果 */
.filter-blur {
    filter: blur(5px);
}

