/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #06c;
}

a:hover {
    text-decoration: underline;
    color: #f60;
}

ul, ol {
    list-style: none;
}

/* 布局结构 */
#container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

#header {
    background-color: #fff;
    border-bottom: 1px solid #e6e6e6;
    padding: 10px 0;
}

#footer {
    background-color: #fff;
    border-top: 1px solid #e6e6e6;
    padding: 15px 0;
    text-align: center;
    margin-top: 20px;
}

#main {
    float: left;
    width: 75%;
    padding: 15px;
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#sidebar {
    float: right;
    width: 23%;
    padding: 15px;
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 导航菜单 */
#nav-first {
    display: flex;
    justify-content: flex-start;
}

#nav-first li {
    margin-right: 20px;
}

#nav-first a {
    color: #666;
}

#nav-first a:hover {
    color: #f60;
}

/* 面包屑导航 */
#breadcrumb {
    padding: 8px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

#breadcrumb li {
    display: inline;
    margin-right: 5px;
}

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

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

/* 内容区域 */
.section {
    margin-bottom: 20px;
}

.section h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.section h2 {
    font-size: 18px;
    color: #333;
    margin: 15px 0 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #eee;
}

.section h2.title {
    background-color: #f8f8f8;
    padding: 8px 10px;
    border-left: 3px solid #f60;
    margin-bottom: 10px;
}

.section p {
    margin-bottom: 10px;
    text-align: justify;
}

/* 按钮样式 */
.BUTTON {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 5px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #333;
    font-size: 12px;
    cursor: pointer;
}

.BUTTON:hover {
    background-color: #eee;
    text-decoration: none;
}

/* 搜索表单 */
#search-form {
    margin-top: 15px;
    display: flex;
}

#search-txt {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px 0 0 3px;
}

#search-form .BUTTON {
    border-radius: 0 3px 3px 0;
    margin-right: 0;
}

/* 列表样式 */
#guide.content li, 
.index ul li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dotted #eee;
}

#guide.content li:last-child,
.index ul li:last-child {
    border-bottom: none;
}

/* 首页特定样式 */
.index ul {
    display: flex;
    flex-wrap: wrap;
}

.index ul a {
    display: inline-block;
    margin: 0 10px 10px 0;
    padding: 3px 8px;
    background-color: #f8f8f8;
    border-radius: 3px;
}

.index ul a:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #main, #sidebar {
        width: 100%;
        float: none;
    }
    
    #sidebar {
        margin-top: 20px;
    }
    
    #nav-first {
        flex-wrap: wrap;
    }
    
    #nav-first li {
        margin-bottom: 5px;
    }
}

/* 特殊页面样式 */
.zhongyaocai.name .section h2 b {
    color: #f60;
    font-weight: normal;
}

/* 清除浮动 */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}