
/* 全局样式设置，包括字体、背景色、颜色搭配等 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用无衬线字体，提升现代感 */
    background: linear-gradient(135deg, #1e3c72, #2a5298); /* 使用线性渐变背景，营造科技感 */
    color: #333; /* 主文字颜色，保证可读性 */
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(30, 60, 114, 0.9); /* 半透明背景，增加层次感 */
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 轻微阴影，提升质感 */
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    transition: background 0.3s, transform 0.3s; /* 平滑过渡效果 */
}

.navbar a:hover {
    background: rgba(255, 152, 0, 0.7); /* 悬停时背景色变化，增强互动性 */
    border-radius: 5px;
    transform: scale(1.05);
}

/* 主容器，使用网格布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
    background: rgba(240, 244, 248, 0.8); /* 半透明白色背景，增加内容区域的清晰度 */
}

/* 选项卡导航 */
.nav-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.nav-tabs .tab {
    background: #2a5298;
    color: #fff;
    padding: 15px 25px;
    margin: 0 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-tabs .tab:hover {
    background: #1e3c72;
}

.nav-tabs .active {
    background: #ff9800;
}

/* 内容区 */
.content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.content.active {
    display: block;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

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

.card img:hover {
    transform: scale(1.05);
}

.card h3 {
    margin-top: 15px;
    color: #2a5298;
}

.card p {
    line-height: 1.6;
    color: #555;
}

/* 按钮样式 */
.button {
    background-color: #ff9800;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    margin-top: 15px;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .nav-tabs {
        flex-direction: column;
    }
    .nav-tabs .tab {
        margin: 10px 0;
    }
    .container {
        padding: 20px;
    }
}

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

/* 代码块样式 */
.code-block {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #333;
    margin-top: 20px;
}

.code-block code {
    display: block;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #2a5298;
    color: #fff;
}

/* 图标样式 */
.icon {
    width: 24px;
    height: 24px;
    fill: #2a5298;
    transition: fill 0.3s;
}

.icon:hover {
    fill: #ff9800;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    list-style: none;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
}

.breadcrumb li {
    margin-right: 5px;
    color: #555;
}

.breadcrumb li::after {
    content: ">";
    margin-left: 5px;
    color: #999;
}

.breadcrumb li:last-child::after {
    content: "";
}

/* 搜索栏样式 */
.search-bar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: 2px solid #2a5298;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.search-bar button {
    padding: 10px 20px;
    border: none;
    background-color: #2a5298;
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-bar button:hover {
    background-color: #1e3c72;
}

/* 仪表盘样式 */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dashboard .widget {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.dashboard .widget:hover {
    transform: scale(1.05);
}

