body {
    background-color: #f0f2f5;
    font-family: Helvetica, Arial, sans-serif !important;
}

a {
    color: #0066cc;
    text-decoration: none !important;
}

a:hover {
    color: #004499;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Tahoma, Arial, Helvetica, sans-serif !important;
}

/* 强制覆盖顶部导航栏的黑色背景 */
.navbar-inverse, 
.navbar-inverse .navbar-inner {
    background-color: #2c3e50 !important;
    background-image: none !important; 
    border-color: #2c3e50 !important; 
}

/* 强制覆盖右侧侧边栏所有可能容器的黑色背景 */
#sidebar, 
.sidebar, 
.box .box-heading, 
.box-heading, 
.widget, 
.widget-title {
    background-color: #2c3e50 !important;
    background-image: none !important;
    border-color: #2c3e50 !important;
}

/* 确保侧边栏内的文字是白色 */
#sidebar, 
.sidebar, 
.box .box-heading span, 
.widget-title {
    color: #ffffff !important;
}
.wrapper {
    background-attachment: scroll !important;
    background-color: #ffffff;
    background-image: none;
    background-position: center top !important;
    background-repeat: repeat !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto 25px;
    max-width: 980px;
    min-width: 283px;
    padding: 0px;
}

#logo {
    margin-left: 25px;
    padding: 30px 5px;
    position: relative;
    width: 300px;
}

.navbar-inverse {
    background-color: #2c3e50;
    border: medium none;
    border-radius: 8px 8px 0 0;
}

.navbar {
    border-radius: 0px;
    min-height: 46px;
}

#menu a {
    color: #ffffff;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: normal;
    padding: 13px 15px;
    position: relative;
}

#menu a:hover {
    background-color: #3498db !important;
}

#main {
    background: #ffffff;
    margin-bottom: 20px;
    margin-left: 15px;
    max-width: 630px !important;
    padding: 15px 20px;
}

.breadcrumb h1 {
    display: inline-block;
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 12px;
    font-weight: normal;
    margin: 0px;
    padding: 0px;
    text-transform: none;
}

#main .breadcrumb {
    background: transparent;
    color: #666;
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 12px;
    margin-bottom: 10px;
    padding: 0px;
    text-align: right;
}

#main .mtitle {
    font-size: 24px;
}

#similar {
    margin-right: -15px;
}

#similar .item {
    display: inline-block;
    float: left;
    margin: 0px 0px 20px;
    max-height: 24.5em;
    min-height: 18em;
    overflow: hidden;
    padding: 0px 15px 0px 0px;
}

#similar .thumbnail img {
    height: auto;
    max-width: 100%;
}

#similar .info {
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 11px;
}

#similar .info h4 {
    font-size: 16px;
    max-height: 4.3em;
    overflow: hidden;
}

section {
    border-bottom: 1px solid #eaeef2 !important;
    clear: both;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

section header {
    margin: 10px 0px 15px;
}

section h2 {
    font-size: 18px;
    line-height: 27px;
    margin-bottom: 5px;
    padding: 0px;
}

section h2 a {
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 0.5px;
    margin: 0px;
    padding-bottom: 7px;
}

section .meta {
    color: #888;
    font-size: 11px;
    letter-spacing: -0.2px;
}

section .thumbnail {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    float: left;
    height: auto !important;
    margin: 0px 10px 10px 0px;
    max-width: 250px !important;
    padding: 4px;
}

section .thumbnail img {
    max-width: 100%;
}

.box-gallery2 .box-content, .box-gallery3 .box-content {
    margin: 0px -15px 0px 0px;
    padding-bottom: 0px;
}

.box-gallery1 .box-content {
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 11px;
}

.box-gallery1 .item {
    margin: 0px 0px 10px;
}

.box-gallery1 .info a {
    font-weight: bold;
    max-height: 35px;
    min-height: 35px;
    overflow: hidden;
}

.box-gallery1 .info {
    display: block;
    float: left;
    max-height: 6em;
    max-width: 66%;
    min-height: 6em;
    overflow: hidden;
}

.box-gallery1 .thumbnail {
    border: medium none;
    float: left;
    margin: 2px 12px 0px 0px;
    max-width: 29%;
    padding: 0px;
}

.box-gallery2 .thumbnail {
    border: medium none;
    float: left;
    margin: 0px 12px 12px 0px;
    max-width: 45%;
    padding: 0px;
}

.box-gallery3 .thumbnail {
    border: medium none;
    float: left;
    margin: 0px 12px 12px 0px;
    max-width: 29%;
    padding: 0px;
}

.box {
    background-color: #ffffff !important;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.box .box-heading {
    background-color: #2c3e50 !important;
    background-image: none;
    border-radius: 8px 8px 0 0;
    padding: 0px 15px;
}

.box-heading span {
    color: #ffffff;
    font-family: Helvetica, Arial, sans-serif !important;
    line-height: 30px;
}

.box-content {
    padding: 12px 15px 10px;
}

footer {
    background-color: #2c3e50;
    border-top: 3px solid #1a2632;
    clear: both;
    overflow: auto;
    padding: 20px 0px;
}

footer h3 {
    border-bottom: 1px solid #3e5a6f;
    color: #66bcda !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 18px;
    line-height: 27px;
    margin-bottom: 15px;
    margin-top: 0px;
    padding-bottom: 5px;
    text-transform: uppercase;
}

footer a, #copyright a {
    color: #b0c4de;
}

footer a:hover, #copyright a:hover {
    color: #ffffff;
}

#about_links a {
    margin: 0px 10px;
    text-transform: uppercase;
}

#copyright {
    background-color: #1e2a36;
    border-top: 1px solid #2c3e50;
    clear: both;
    color: #9aaebf !important;
    font-family: Helvetica, Arial;
    font-size: 11px;
    margin-top: 0px;
    overflow: auto;
    padding: 20px;
}

.declare {
    color: #9aaebf;
    font-size: 11px;
}

#nav {
    position: relative;
}

#searchform {
    position: absolute;
    top: 10px;
    right: 20px;
}

#searchform #keyword {
    width: 220px;
    background: #fff;
    color: #333;
    font-size: 12px;
    font-family: Tahoma, Verdana;
    display: block;
    float: left;
    border: none;
    height: 25px;
    line-height: 25px;
    padding: 0 3px;
}

#searchform #searchsubmit {
    background: #2c3e50;
    color: #fff;
    font-size: 12px;
    font-family: Tahoma, Verdana;
    display: block;
    float: left;
    border: none;
    height: 25px;
    line-height: 25px;
    padding: 0 10px;
}

/* pagenavi */
.pagenavi {
    margin: 10px 0;
    color: #333;
    line-height: 2em;
    border: 0px;
}

.pagenavi a:visited,
.pagenavi a:link,
.pagenavi span,
.pagenavi span.pages,
.pagenavi span.extend {
    font-family: Tahoma;
    font-size: 11px;
    padding: 3px 6px;
    margin: 2px 0;
    text-decoration: none;
    border: 1px solid #e6e6e6;
    color: #636363;
    background-color: #f9f9f9;
}

.pagenavi a:hover,
.pagenavi a:active {
    font-family: Tahoma;
    font-size: 11px;
    padding: 3px 6px;
    margin: 2px 0;
    text-decoration: none;
    border: 1px solid #2c3e50;
    color: #fff;
    background-color: #2c3e50;
}

.pagenavi span.current {
    font-family: Tahoma;
    font-size: 11px;
    padding: 3px 6px;
    margin: 2px 0;
    font-weight: bold;
    border: 1px solid #2c3e50;
    color: #fff;
    background-color: #2c3e50;
}
/* 控制所有列表内容的换行，防止溢出 */
li, 
li p, 
li a, 
li span, 
.item, 
.item-content,
.post-content {
    word-break: break-all !important;          /* 允许在单词内任意位置换行 */
    word-wrap: break-word !important;          /* 强制长单词/URL换行 */
    overflow-wrap: break-word !important;      /* 与 word-wrap 作用相同，标准属性 */
    white-space: normal !important;            /* 允许自动换行 */
    overflow-x: auto !important;               /* 如果内容实在不行，显示横向滚动条 */
}

/* 对特定内容容器进行额外控制，提升体验 */
body, 
.wrapper, 
#main, 
#content {
    overflow-x: hidden !important;             /* 防止整个页面出现横向滚动条 */
}