
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background: linear-gradient(135deg, #2C3E50 70%, #34495E 25%, #E74C3C 5%);
    /* 主色70%为深蓝，辅色25%为科技灰，点缀色5%为橙色 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

.navbar a {
    color: #ECF0F1;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s, transform 0.3s;
}

.navbar a:hover {
    color: #E67E22;
    transform: scale(1.1);
}

/* 主要内容区样式 */
.main-content {
    margin-top: 80px; /* 防止导航栏遮挡内容 */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 分屏设计 */
.split-screen {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 40px;
}

.left-panel, .right-panel {
    flex: 1 1 500px;
    padding: 20px;
    box-sizing: border-box;
}

.left-panel {
    background: linear-gradient(135deg, #1E90FF, #800080);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.right-panel {
    background: linear-gradient(135deg, #A9A9A9, #C0C0C0);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

/* 图片样式 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin: 40px 0;
    width: 100%;
}

.image-gallery img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
}

/* 模块化卡片 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 20px;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #FFA500; /* 辅助色橙色 */
}

/* 代码示例样式 */
.code-block {
    background-color: #272822;
    color: #F8F8F2;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace;
}

.code-block code {
    display: block;
}

/* 按钮样式 */
.button {
    background-color: #FF4500;
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s, transform 0.3s;
}

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

.button::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 脚注样式 */
.footer {
    background-color: #2F4F4F;
    color: #FFFFFF;
    padding: 30px 20px;
    text-align: center;
}

.footer .social-icons a {
    margin: 0 10px;
    color: #FFFFFF;
    transition: color 0.3s;
}

.footer .social-icons a:hover {
    color: #FFD700;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .split-screen {
        flex-direction: column;
    }
}

