
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用Roboto无衬线字体 */
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* 应用线性渐变背景 */
    color: #ffffff;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    position: fixed; /* 固定导航栏在顶部 */
    top: 0;
    width: 100%;
    background-color: rgba(32, 58, 67, 0.9); /* 半透明背景 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    margin: 0 15px;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #FFA500; /* 橙色悬停效果 */
}

.navbar .icon {
    width: 24px;
    height: 24px;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-size: contain;
}

/* 头部样式 */
.header {
    background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
    color: #FFA500; /* 应用点缀色 */
    padding: 100px 20px 60px 20px; /* 留出导航栏空间 */
    text-align: center;
    font-size: 2.5em;
    transition: background 0.5s, color 0.5s;
}

.header:hover {
    background: linear-gradient(90deg, #2c5364, #203a43, #0f2027);
    color: #32CD32; /* 绿色点缀色 */
}

/* 主容器布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); /* 避免低于500px宽度 */
    gap: 20px;
    padding: 60px 40px;
}

/* 内容块样式 */
.item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

/* 标题样式 */
h2, h3, h4 {
    color: #ffffff;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

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

h4 {
    font-size: 1.6em;
    margin-bottom: 10px;
}

/* 段落样式 */
p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* 代码块样式 */
code {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    color: #FFA500;
}

/* 预格式化文本样式 */
pre {
    background-color: rgba(0, 0, 0, 0.85);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

pre code {
    color: #32CD32;
    font-size: 14px;
}

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.image-gallery img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* 交互按钮样式 */
.button {
    padding: 15px 30px;
    font-size: 1em;
    color: #ffffff;
    background-color: #FFA500; /* 点缀色 */
    border: none;
    border-radius: 5px;
    box-shadow: 0 5px #CC8400;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s;
    cursor: pointer;
}

.button:active {
    transform: translateY(4px);
    box-shadow: 0 1px #CC8400;
}

.button:hover {
    background-color: #FFB732;
}

/* 网格系统样式 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 20px;
    padding: 40px;
}

.grid-item-1 {
    grid-column: span 6;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .grid-item-1 {
        grid-column: span 12;
    }
}

/* 固定反馈按钮样式 */
.user-feedback {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(32, 58, 67, 0.9);
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.user-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

/* 其他补充样式 */
.separator {
    width: 100%;
    height: 2px;
    background-color: #FFA500;
    margin: 20px 0;
    border-radius: 1px;
}

.rounded-box {
    border: 1px solid #2C5364;
    border-radius: 10px;
    padding: 15px;
}

/* 动画关键帧 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.fade-in-element {
    opacity: 0;
    animation: fadeIn 2s forwards;
}

.slide-in {
    animation: slideIn 0.5s forwards;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .header {
        font-size: 1.8em;
        padding: 40px 10px;
    }

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

    .navbar a {
        margin: 10px 0;
    }
}

/* 提示样式 */
.notice {
    background-color: rgba(255, 165, 0, 0.8);
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 30px;
    animation: fadeIn 1s forwards;
}

