/* ===========================================
   CSS Reset & Base Styles
   =========================================== */
body, div, table, ul, li, form, p, h1, h2, h3, input, textarea, td, img, iframe {
    margin: 0;
    padding: 0;
    color: #000;
}

body {
    background: 0 -49px #FAFFF9 repeat-x;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

ul, li {
    list-style-type: none;
}

img {
    border: 0;
}

a {
    /*font: 16px "arial";*/
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    text-decoration: none;
    color: #000;
    cursor: pointer;
}

    a:hover {
        text-decoration: underline;
    }

/* ===========================================
   Top Area
   =========================================== */
#top {
    height: 48px;
    width: 950px;
    margin: 0 auto;
}

#top-r {
    margin: 18px 0 0 10px;
    float: right;
    position: relative;
}

#passport {
    margin-right: 90px;
}

    #passport a {
        display: inline-block;
        margin: 0 4px;
    }

/* ===========================================
   Main Container
   =========================================== */
#sites, #foot {
    width: 848px;
    margin: 0 auto;
}

/* ===========================================
   Section Groups (优化间距)
   =========================================== */
.section-group {
    margin-bottom: 8px; /* 减小整体间距 */
    clear: both;
}

    /* 第一部分特殊处理 - 减小底部间距 */
    .section-group:first-child {
        margin-bottom: 3px;
        padding-bottom: 0;
    }

        /* 第一部分内容区域 - 减小底部内边距 */
        .section-group:first-child .section-links {
            padding-bottom: 0;
            margin-bottom: 0;
        }

    /* 第二部分特殊处理 - 精确控制顶部间距 */
    .section-group:nth-child(2) {
        margin-top: 8px; /* 控制第二个部分与上面的距离 */
    }

    /* 最后一个部分 */
    .section-group:last-child {
        margin-bottom: 0;
    }

/* ===========================================
   Section Title
   =========================================== */
.section-title {
    border-bottom: 2px solid #C7EDC5;
    height: 25px;
    margin-bottom: 5px; /* 减小标题和内容之间的间距 */
    clear: both;
}

/* 第二部分标题特殊处理 - 进一步减小间距 */
.section-group:nth-child(2) .section-title {
    margin-top: 0;
    margin-bottom: 3px;
}

.section-title h1 {
    display: block;
    float: left;
    padding: 4px 10px 0;
    height: 20px;
    width: auto;
    min-width: 100px;
    color: #090;
    font-size: 16px;
    background: #DBFAC9;
}

/* ===========================================
   Section Links
   =========================================== */
.section-links {
    overflow: hidden;
    padding: 8px 0; /* 减小内边距 */
}


    .section-links li {
        width: 165px;   /*每个条目宽度*/
        float: left;
        padding: 4px 29px 4px 0;
        overflow: hidden;
        white-space: nowrap;
        height: 35px;
        position: relative;
        border: 1px solid #FAFFF9;
        box-sizing: border-box;
    }

        /*.section-links li:hover {
            background: #F7FEE7;
            border: 1px dashed #666;
        }*/

        .section-links li img {
            vertical-align: middle;
            margin-right: 5px;
        }

        .section-links li a {
            display: inline-block;
            margin: 0 2px;
            overflow: hidden;
            white-space: nowrap;
            line-height: 1.6;
            vertical-align: middle;
        }

            .section-links li a:hover {
                color: #000;
            }

            /* ===========================================
   Link Colors (保持原有颜色)
   =========================================== */
            .section-links li a[style*="color:#FF7500"] {
                color: #FF7500;
            }

            .section-links li a[style*="color:#D6C394"] {
                color: #D6C394;
            }

            .section-links li a[style*="color:#68217A"] {
                color: #68217A;
            }

            .section-links li a[style*="color:#AF9D63"] {
                color: #AF9D63;
            }

            .section-links li a[style*="color:#00FF00"] {
                color: #00FF00;
            }

            .section-links li a[style*="color:#3333FF"] {
                color: #3333FF;
            }

            .section-links li a[style*="color:#00459C"] {
                color: #00459C;
            }

            .section-links li a[style*="color:#FF0000"] {
                color: #FF0000;
            }

            .section-links li a[style*="color:#F567FF"] {
                color: #F567FF;
            }

            .section-links li a[style*="color:#FF0084"] {
                color: #FF0084;
            }

            .section-links li a[style*="color:#FF6500"] {
                color: #FF6500;
            }

            .section-links li a[style*="color:#10866B"] {
                color: #10866B;
            }

            .section-links li a[style*="color:#0000FF"] {
                color: #0000FF;
            }

            .section-links li a[style*="color:#E79A00"] {
                color: #E79A00;
            }

            .section-links li a[style*="color:#7B92FF"] {
                color: #7B92FF;
            }

            .section-links li a[style*="color:#800000"] {
                color: #800000;
            }

            .section-links li a[style*="color:#AD4D4A"] {
                color: #AD4D4A;
            }

            .section-links li a[style*="color:#F699CC"] {
                color: #F699CC;
            }

/* ===========================================
   Layout Variations
   =========================================== */
.layout-large .section-links li {
    width: 180px;
    height: 90px;
    padding: 10px 29px 10px 0;
}

.layout-small .section-links li {
    width: 100px;
    height: 22px;
}

.layout-center .section-links li {
    text-align: center;
}

.layout-left .section-links li {
    text-align: left;
}

/* ===========================================
   Footer
   =========================================== */
#foot {
    margin-top: 10px;
    padding-top: 10px;
    height: 60px;
    border-top: 1px solid #E4E4E4;
    clear: both;
}

    #foot p {
        margin: 10px auto 0 auto;
        text-align: center;
        color: #666;
    }

    #foot a {
        display: inline-block;
        margin: 0 10px;
        color: #666;
    }

        #foot a:hover {
            color: #f00;
            text-decoration: underline;
        }

    #foot span {
        display: inline-block;
    }

/* ===========================================
   Responsive Design
   =========================================== */
@media (max-width: 900px) {
    #sites, #foot, #top {
        width: 95%;
    }

    .section-links li {
        width: 110px;
    }
}

@media (max-width: 600px) {
    .section-links li {
        width: 45%;
        float: left;
        margin-right: 5%;
        padding-right: 0;
    }

        .section-links li:nth-child(2n) {
            margin-right: 0;
        }
}

/* ===========================================
   Utility Classes
   =========================================== */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none;
}

/* ===========================================
   扩展性：未来添加新部分时的自动间距控制
   =========================================== */
/* 新添加的部分会有合适的间距 */
.section-group + .section-group {
    margin-top: 15px; /* 新添加的部分与上面的距离 */
}

/* 不同级别的标题样式（未来扩展用） */
.section-title.level2 h1 {
    background: #E0F7FA;
    color: #006064;
}

.section-title.level3 h1 {
    background: #F3E5F5;
    color: #4A148C;
}

/* ===========================================
   间距微调区域（如果还需要调整）
   =========================================== */
/* 如果需要进一步减小第二个标题的间距，取消下面注释 */

.section-group:nth-child(2) {
    margin-top: 5px !important;
}

.section-group:nth-child(2) .section-title {
    margin-top: -50px !important;
    margin-bottom: 2px !important;
}


/* 如果需要增大间距，取消下面注释 */
/*
.section-group:nth-child(2) {
    margin-top: 15px !important;
}

.section-group:nth-child(2) .section-title {
    margin-bottom: 8px !important;
}
*/
