
/* 全局样式重置，确保不同浏览器下的一致性 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置主体背景，使用线性渐变营造深邃科技感 */
body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    padding: 20px;
}

/* 固定导航栏样式，半透明背景与模糊效果 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(32, 58, 67, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

/* 导航链接样式，添加过渡效果 */
.navbar a {
    color: #ffffff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #ffa500;
}

/* 主容器，避免内容被导航栏覆盖 */
.main-content {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 卡片容器，使用Flexbox实现响应式布局 */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 20px 0;
}

/* 单个卡片样式，添加圆角与阴影 */
.card {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    flex: 1 1 300px;
    margin: 10px;
    padding: 20px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 卡片悬停效果，轻微放大并加强阴影 */
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
}

/* 卡片内部布局，支持翻转效果 */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

/* 卡片翻转，当悬停时触发 */
.card:hover .card-inner {
    transform: rotateY(180deg);
}

/* 卡片前后面样式 */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    backface-visibility: hidden;
}

/* 后面卡片翻转 */
.card-back {
    transform: rotateY(180deg);
}

/* 图片样式，添加圆角与阴影，并限制最大宽度 */
.card img {
    width: 100%;
    max-width: 650px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

/* 图片悬停效果，轻微放大 */
.card img:hover {
    transform: scale(1.05);
}

/* 标题样式，增加字体大小与粗细 */
.card-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 正文字体大小和颜色 */
.card-content {
    font-size: 1em;
    color: #f0f0f0;
}

/* 代码块样式，使用背景色区分 */
.code-block {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace;
    color: #00ff00;
}

/* 响应式设计，适配不同屏幕尺寸 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }
}

/* 提示信息样式，显著位置 */
.highlight-info {
    background: rgba(255, 165, 0, 0.8);
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.2em;
    margin: 20px 0;
    text-align: center;
}

/* 链接样式，添加无follow属性 */
a[rel="nofollow"] {
    color: #ffa500;
    text-decoration: underline;
}

/* 折叠区域样式 */
.collapsible {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1em;
    margin: 10px 0;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.collapsible:hover {
    background: rgba(255, 255, 255, 0.2);
}

.content {
    padding: 0 20px;
    display: none;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.collapsible.active + .content {
    display: block;
}

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

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