
/* 
整体页面样式定义
包括背景、字体、颜色、布局等基础设置
使用冷色调搭配，营造科技感与信赖感
*/

/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0E34A0, #8D8D8D);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 容器设置，采用响应式网格布局 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 60px 0;
}

/* 顶部导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(14, 52, 160, 0.8);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0;
    transition: background 0.3s ease;
    z-index: 1000;
}

.navbar a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease, background 0.3s ease;
    padding: 10px 20px;
    border-radius: 5px;
}

.navbar a:hover {
    background: #FF9800;
    color: #0E34A0;
}

/* 主要内容区域样式 */
.article-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.article-section h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #B2EBF2;
}

.article-section h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #9C27B0;
}

.article-section p {
    font-size: 1em;
    margin-bottom: 15px;
}

/* 按钮样式 */
.btn-primary {
    background-color: #FF9800;
    border: none;
    color: #0E34A0;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.btn-secondary {
    background-color: #8BC34A;
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-secondary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.4);
}

/* 图片样式 */
img.decorative-image {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

img.decorative-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* 代码块样式 */
code, pre {
    background: rgba(0, 0, 0, 0.7);
    color: #B2EBF2;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

/* 模糊透明效果 */
.focus-area {
    position: relative;
    height: 400px;
    background: url('https://images.gptkong.com/demo/sample1.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.focus-content {
    color: #ffffff;
    text-align: center;
    z-index: 1;
}

/* 动画效果 */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #FF9800;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 100px auto;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 章节导航样式 */
.chapter-nav {
    position: fixed;
    top: 60px;
    right: 20px;
    background: rgba(14, 52, 160, 0.8);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.chapter-nav a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease, background 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.chapter-nav a:hover {
    background: #FF9800;
    color: #0E34A0;
}

/* 底部样式 */
.footer {
    background: rgba(14, 52, 160, 0.9);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.footer .language-switcher, .footer .social-links {
    margin: 10px 0;
}

.footer button, .footer a {
    background: #FF9800;
    border: none;
    color: #0E34A0;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.footer button:hover, .footer a:hover {
    background: #ffffff;
    transform: scale(1.05);
}

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

.collapsible:hover {
    background: #FF9800;
    color: #0E34A0;
}

.collapsible:after {
    content: '\002B';
    font-size: 13px;
    float: right;
}

.collapsible.active:after {
    content: "\2212";
}

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


