
/* 
整体页面样式设计
主色调为深蓝色，辅以灰色和白色，点缀色选用亮橙色和绿色，营造科技感与高级质感的氛围
采用响应式设计，确保页面在不同设备上均有良好展示效果
使用Flexbox和Grid布局，实现灵活的分屏和模块排列
应用线性和径向渐变，增强视觉层次感
添加阴影效果和动画，提升页面的立体感和互动性
*/

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16222a);
    color: #ffffff;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 47, 75, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar:hover {
    background: rgba(0, 47, 75, 1);
}

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

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

.navbar .search-box {
    display: flex;
    align-items: center;
}

.navbar input[type="text"] {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
}

/* 主容器样式 */
.container {
    display: flex;
    flex-wrap: wrap;
    padding: 100px 20px 50px 20px;
    max-width: 1920px;
    margin: 0 auto;
}

/* 左侧分屏样式 */
.left-panel {
    flex: 1;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin: 10px;
    border-radius: 10px;
}

.left-panel h2, .left-panel h3, .left-panel h4 {
    color: #ff7f50;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.left-panel p {
    font-size: 16px;
    line-height: 1.6;
    color: #dddddd;
}

/* 右侧分屏样式 */
.right-panel {
    flex: 1;
    padding: 20px;
    background: rgba(34, 193, 195, 0.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin: 10px;
    border-radius: 10px;
}

.right-panel h2, .right-panel h3, .right-panel h4 {
    color: #28a745;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.right-panel p {
    font-size: 16px;
    line-height: 1.6;
    color: #dddddd;
}

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

img.decorative:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0,0,0,0.4);
}

/* 按钮样式 */
button, .interactive-button {
    background-color: #ff7f50;
    border: none;
    color: #fff;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover, .interactive-button:hover {
    background-color: #ff5722;
    transform: scale(1.05);
}

/* 折叠面板样式 */
.accordion {
    background-color: #333;
    color: #fff;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    border-radius: 5px;
}

.accordion:hover {
    background-color: #444;
}

.panel {
    padding: 0 18px;
    background-color: #f1f1f1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    border-radius: 0 0 5px 5px;
}

.accordion.active + .panel {
    max-height: 500px;
}

/* 代码块样式 */
pre code {
    background: #2c2c2c;
    color: #e7e7e7;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin: 20px 0;
}

/* 固定导航栏右侧元素 */
.navbar .language-switch {
    cursor: pointer;
    color: #fff;
    transition: color 0.3s ease;
}

.navbar .language-switch:hover {
    color: #ff7f50;
}

/* 图表样式 */
.chart {
    position: relative;
    width: 100%;
    height: 300px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.bar {
    width: 30px;
    background-color: #ff5722;
    margin: 0 10px;
    display: inline-block;
    transition: height 0.5s ease;
}

.bar:hover {
    background-color: #e64a19;
}

/* 联系我们表单样式 */
.contact-form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #28a745;
    outline: none;
}

.contact-form button {
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #218838;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 100px 10px 50px 10px;
    }

    .left-panel, .right-panel {
        margin: 10px 0;
    }

    .navbar .search-box {
        display: none;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar a {
        margin: 0 10px;
        font-size: 14px;
    }
}

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

.transition {
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

.transition.active {
    opacity: 1;
}

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