75 lines
1.2 KiB
CSS
75 lines
1.2 KiB
CSS
/* 基础样式 */
|
|
.container {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
font-family: Arial, sans-serif;
|
|
}
|
|
|
|
.title {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.subtitle {
|
|
margin-bottom: 40px;
|
|
color: #666;
|
|
}
|
|
|
|
/* 粘性导航样式 */
|
|
.sticky-nav {
|
|
position: sticky;
|
|
top: 0;
|
|
background-color: white;
|
|
padding: 15px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
z-index: 100;
|
|
}
|
|
|
|
.search-box {
|
|
width: 100%;
|
|
padding: 10px;
|
|
margin-bottom: 15px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.category-tabs {
|
|
display: flex;
|
|
gap: 10px;
|
|
overflow-x: auto;
|
|
padding-bottom: 5px;
|
|
}
|
|
|
|
.category-tabs button {
|
|
padding: 8px 16px;
|
|
border: none;
|
|
background-color: #f0f0f0;
|
|
border-radius: 20px;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.category-tabs button.active {
|
|
background-color: #007bff;
|
|
color: white;
|
|
}
|
|
|
|
/* 内容区域样式 */
|
|
.content-section {
|
|
margin-top: 40px;
|
|
padding: 20px;
|
|
border: 1px solid #eee;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.content-section h2 {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
/* 占位内容,使页面可滚动 */
|
|
.placeholder {
|
|
height: 300px;
|
|
background: linear-gradient(to bottom, #f9f9f9, #e9e9e9);
|
|
margin-top: 20px;
|
|
border-radius: 8px;
|
|
} |