/*
Theme Name:LeHuo V2
Version: 2.0
Description: 新版蓝色主题，卡片式布局，左侧边栏
*/
/* Reset */
article, aside, details, figcaption, figure, footer, header, main, nav, section {display:block;}
div,html,body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td, hr, button, article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, main {margin:0; padding:0;}
body {background-color:#F5F7FA; font:100%/1.5em 'Microsoft Yahei',Arial,tahoma;}
a {text-decoration:none; outline:none; -webkit-tap-highlight-color:transparent; color: #2563EB;cursor: pointer; transition: color 0.3s ease;}
a:hover {color:#1E40AF;}
input {-webkit-appearance:none; border:0;}
input:focus {outline:none;}
li {list-style:none;}
.clear {clear:both;}
a img {border:none;}
table {background-color: transparent; border-spacing: 0; border-collapse: collapse; font-size:0.75em; width:100%;border-top:solid 1px #ddd;border-left:solid 1px #ddd; box-sizing: border-box;}
table th{background-color:#f9f9f9;text-align:center; box-sizing: border-box;}
table td,table th{padding:5px 10px;border:1px solid #ddd; box-sizing: border-box;}
hr {border:none; border-bottom:1px solid #eee;}

/* Layout */
.inner {width:1180px; margin:0 auto;}
.thumbnail img {width:100%; display:block;}
.blank {height:15px; width:100%; clear:both; overflow:hidden;}

/* Top Ad */
.topad {margin-bottom:20px; margin-top:20px;}
.mainad {margin-bottom:20px;}
.topad img,.mainad img {width:100%; height:auto; display:block; border-radius:8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);}
.content .mainad {border-bottom:1px solid #eee;  padding:0 18px 20px;}

/* Header - White background with shadow */
.header {background-color:#fff; height:70px; width:100%; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: relative; z-index: 100;}
.logo {float:left; height:70px; width:auto; width:200px;background-color: #c6c3c3;}
.logo a {display:block; padding:10px 0;}
.logo img {display:block; height:50px; width:auto;}

/* Navigation - Light theme */
.nav {float:right;}
.nav .menu ul li,.top-other ul li {float:left; line-height:70px; color:#333; font-size:1em; border-right:1px solid #e5e7eb; border-left:1px solid #e5e7eb; position:relative;}
.nav .menu ul li:first-child {border-left:none;}
.nav .menu ul li a {color:#333; padding:0 15px; display:block; transition: all 0.3s ease;}
.nav .menu ul li a:hover,.nav .menu ul li.current a {background-color:#2563EB; color:#fff;}
.nav .menu ul li ul {position:absolute; left:0; top:70px; width:150px; border-radius:0 0 8px 8px; background-color:#fff; overflow:hidden; border-top:2px solid #2563EB; z-index:9; display:none; box-shadow: 0 4px 12px rgba(0,0,0,0.15);}
.nav .menu ul li ul li {float:none; line-height:1.5em; font-size:0.875em; text-align:center; border:none; border-bottom:1px solid #e5e7eb;}
.nav .menu ul li ul li a {padding:10px 0; color:#333;}
.nav .menu ul li ul li a:hover {background-color:#F5F7FA; color:#2563EB;}
.nav .menu ul.submenu {display:block;}

/* Search */
.top-other {float:right;}
.top-other ul li i {padding:0 15px; cursor:pointer; display:block;}
.top-other ul li .social-share {position:absolute; right:-2px; top:70px; width:80px; background-color:#fff; padding:0 20px; border:1px solid #E9E9E9; display:none; z-index:9; box-shadow: 0 4px 12px rgba(0,0,0,0.15);}
.top-other ul li .social-share a {display:block; clear:both; color:#333; margin:10px 0;}
.top-other .icon-menu {display:none;}
.top-other ul li.cur-menu {box-shadow:0px 0px 3px #232323; margin-right:-1px; border-right-color:#444;}

/* Search Background */
.search-bg {background-color:#F5F7FA; width:100%; padding:20px 0; display:none; border-bottom:1px solid #e5e7eb;}
.search-bg.search-open {display:block;}
.search-bg .inner {overflow:hidden;}
.search-form,.search-form input {float:left;}
.search-form .s {background-color:#fff; border:2px solid #2563EB; height:22px; line-height:22px; padding:5px; font-size:0.875em; width:500px; border-radius:6px;}
.search-form button {border:none; background-color:#2563EB; color:#fff; height:34px; padding:0 15px; cursor:pointer; margin:1px 5px; border-radius:6px; font-size:1em; transition: background-color 0.3s ease;}
.search-form button:hover {background-color:#1E40AF;}

/* Tags Cloud */
.tagscloud {float:left; padding-left:10px; line-height:32px; font-size:0.875em;}
.tagscloud span,.tagscloud a {float:left;}
.tagscloud a {color:#2563EB; margin-left:10px;}

/* Container - Sidebar on left */
.container {overflow:hidden; display:flex; gap:20px; margin-top:20px;}

/* Breadcrumb */
.breadcrumb {font-size:0.875em; color:#666; margin:20px 0; padding-bottom:15px; border-bottom:1px solid #e5e7eb; background-color:#fff; padding:15px 20px; border-radius:8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05);}
.breadcrumb span {padding:0; border-left:4px solid #2563EB; padding-left:12px;}
.breadcrumb i {margin-right:5px; color:#2563EB;}

/* Sidebar - Left side, 260px width */
.sidebar {width:260px; flex-shrink: 0;}

/* Main Content - 900px width */
.main {flex:1; min-width:0;}

/* Widget */
.widget {background-color:#fff; margin-bottom:20px; overflow:hidden; border-radius:8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: box-shadow 0.3s ease;}
.widget:hover {box-shadow: 0 4px 12px rgba(0,0,0,0.12);}
.textwidget {padding:18px;}
.textwidget p {padding:9px 0;}
.textwidget img {width:100%; height:auto;}

/* Section Title */
.section-title {border-bottom:2px solid #2563EB; margin-bottom:20px; padding-bottom:10px;}
.section-title h3 {border-left:4px solid #2563EB; padding-left:15px; margin:0; font-weight:600; font-size:1.25em; color:#1F2937;}
.widget .section-title {margin:18px 18px 15px 18px;}

/* Widget Lists */
.widget ul {padding:0 18px 18px;}
.widget.theme-widget ul {padding:0 18px 18px;}
.widget ul li {overflow:hidden; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:0.875em; margin-bottom:12px; padding-bottom:12px; border-bottom:1px solid #f3f4f6; transition: padding-left 0.3s ease;}
.widget ul li:last-child {border-bottom:none; margin-bottom:0; padding-bottom:0;}
.widget ul li:hover {padding-left:5px;}
.widget ul li a {color:#374151; transition: color 0.3s ease;}
.widget ul li a:hover {color:#2563EB;}

/* Widget Thumbnail */
.widget .thumbnail {float:left; width:80px; height:60px; padding-right:12px; border-radius:4px; overflow:hidden;}
.widget .thumbnail img {height:60px; object-fit:cover;}
.widget ul li p {font-size:1em; margin:0;}
.widget ul li i {font-style:normal; font-size:0.75em; background-color:#2563EB; color:#fff; padding:3px 8px; margin-right:8px; border-radius:4px; display:inline-block; min-width:20px; text-align:center;}

/* Widget Index Colors */
.a1 {background-color:#2563EB !important; color:#fff; border-radius: 4px;}
.a2 {background-color:#3B82F6 !important; color:#fff; border-radius: 4px;}
.a3 {background-color:#60A5FA !important; color:#fff; border-radius: 4px;}
.a4,.a5,.a6,.a7,.a8,.a9 {background-color:#9CA3AF !important; color:#fff; border-radius: 4px;}

/* Widget Follow (Contact) */
.widget .follow {padding:18px; text-align:center;}
.widget .follow img {margin:0 auto 15px; width:150px; height:150px; display:block; border-radius:8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);}
.widget .follow p {margin-bottom:15px; color:#374151; line-height:1.6;}
.widget .follow p:last-child {margin-bottom:0;}

/* Widget List Items */
.widget ul li.list p {white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:flex; align-items:center;}
.widget ul li.list i {margin-right:8px; color:#2563EB;}
.widget ul li.list .thumbnail {display:none;}

/* Content Area */
.content {overflow:hidden; background-color:#fff; margin-bottom:20px; border-radius:8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding:25px;}

/* Card Grid Layout for Homepage */
.content-grid {display:grid; grid-template-columns:repeat(2, 1fr); gap:25px; padding:25px;}

/* Section Cards */
.section-card {background-color:#fff; border:1px solid #e5e7eb; border-radius:8px; overflow:hidden; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.05);}
.section-card:hover {box-shadow: 0 8px 16px rgba(0,0,0,0.12); transform: translateY(-4px);}
.section-card .thumbnail {width:100%; height:200px; overflow:hidden; position:relative;}
.section-card .thumbnail img {width:100%; height:100%; object-fit:cover; transition: transform 0.3s ease;}
.section-card:hover .thumbnail img {transform: scale(1.05);}
.section-card .card-content {padding:20px;}
.section-card h2 {font-weight:600; font-size:1.125em; margin-bottom:12px; color:#1F2937; line-height:1.4; height:3em; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;}
.section-card h2 a {color:#1F2937; transition: color 0.3s ease;}
.section-card h2 a:hover {color:#2563EB;}
.section-card .postmeta {margin-bottom:12px; font-size:0.75em; color:#6B7280;}
.section-card .excerpt p {font-size:0.875em; color:#4B5563; line-height:1.6; height:4.8em; overflow:hidden; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical;}

/* Post Meta */
.postmeta {margin-bottom:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.postmeta span {font-size:0.75em; color:#6B7280; margin-right:15px;}

/* Post */
.post {margin:0; overflow:hidden;}
.post h1.post-title {font-size:1.75em; margin-bottom:15px; color:#1F2937; font-weight:600; line-height:1.4;}
.post .postmeta {border-bottom:1px solid #e5e7eb; padding-bottom:15px; margin-bottom:20px;}
.post .postmeta span {color:#6B7280;}
.post .entry {color:#374151; line-height:1.8;}
.post .entry p {font-size:1em; line-height:1.8; margin-bottom:20px;}
.post .entry ul,.post .entry ol,.post .entry hr,.post .entry blockquote,.post .entry h1,.post .entry h2,.post .entry h3,.post .entry h4,.post .entry h5,.post .entry h6 {margin-bottom:20px;}
.post .entry h1,.post .entry h2,.post .entry h3,.post .entry h4,.post .entry h5,.post .entry h6 {border-left: 4px solid #2563EB; padding-left: 15px; font-weight:600; color:#1F2937; margin-top:30px;}
.post .entry h2 {font-size:1.5em;}
.post .entry h3 {font-size:1.25em;}
.post .entry li {font-size:1em;}
.post .entry ul,.post .entry ol {padding-left:2em;}
.post .entry ul li {list-style:inside disc none; margin-left:1px;}
.post .entry ol li {list-style:inside decimal none;}
.post .entry blockquote {overflow:hidden; border:1px solid #e5e7eb; border-left:4px solid #2563EB; background-color:#F5F7FA; color:#374151; padding:20px; font-size:0.875em; margin:0 0 20px; border-radius:4px;}
.post .entry a {color:#2563EB; text-decoration:underline;}
.post .entry a:hover {color:#1E40AF;}
.post .entry img {max-width:100%; height:auto; border-radius:8px; margin:20px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1);}

/* Post Navigation */
.postnavi {margin-bottom:30px; overflow:hidden; padding:20px; background-color:#F5F7FA; border-radius:8px; display:flex; justify-content:space-between; gap:15px;}
.postnavi .prev,.postnavi .next {flex:1; padding:12px 20px; background-color:#fff; border:2px solid #2563EB; border-radius:6px; transition: all 0.3s ease;}
.postnavi .prev:hover,.postnavi .next:hover {background-color:#2563EB; color:#fff;}
.postnavi .prev a,.postnavi .next a {color:#2563EB; font-size:0.875em; display:block; transition: color 0.3s ease;}
.postnavi .prev:hover a,.postnavi .next:hover a {color:#fff;}
.postnavi i {font-style:normal; font-family:'Microsoft Yahei'; margin:0 5px;}

/* Page Navigation */
.pagenavi {text-align:center; margin-bottom:30px; padding:20px 0;}
.pagenavi a,.pagenavi span,.pagenavi em {background-color:#fff; border:2px solid #e5e7eb; padding:8px 14px; font-size:0.875em; color:#374151; margin:0 4px; border-radius:6px; transition: all 0.3s ease; display:inline-block;}
.pagenavi a:hover {border-color:#2563EB; color:#2563EB; background-color:#F5F7FA;}
.pagenavi a.current,.pagenavi span {background-color:#2563EB; color:#fff; border-color:#2563EB;}

/* Footer */
.footer {background-color:#1F2937; color:#9CA3AF; width:100%; padding:30px 0 20px; margin-top:40px;}
.footer .inner {overflow:hidden;}
.footer a {color:#9CA3AF; transition: color 0.3s ease;}
.footer a:hover {color:#fff;}
.footer .other {float:right; font-size:0.875em;}
.footer .copyright {float:left; font-size:0.875em;}

/* Footer Contact Info */
.footer-contact {margin-bottom:20px; padding-bottom:20px; border-bottom:1px solid #374151;}
.footer-contact .copyright,.footer-contact .other {float:none; display:inline-block; margin:5px 15px; font-size:0.875em;}

/* Responsive Design */
@media only screen and (max-width:1200px){
	.inner {width:1024px;}
	.nav .menu ul li, .top-other ul li {font-size:0.875em;}
	.search-form .s {width:400px;}
	.main {width:auto;}
	.sidebar {width:240px;}
	.content-grid {grid-template-columns:repeat(2, 1fr); gap:20px; padding:20px;}
}

@media only screen and (max-width:1060px){
	.inner {width:960px;}
	.nav .menu ul li a {padding:0 12px;}
	.search-form .s {width:350px;}
	.sidebar {width:220px;}
	.widget .thumbnail {width:70px; height:52px; padding-right:10px;}
	.widget .thumbnail img {height:52px;}
	.content-grid {grid-template-columns:repeat(2, 1fr); gap:18px; padding:18px;}
}

@media only screen and (max-width:980px){
	.inner {width:96%;}
	.top-other .icon-menu {display:block;}
	.nav {display:none; position:fixed; left:0; top:70px; background-color:#fff; width:100%; height:100%; z-index:9; box-shadow:0 0 3px #232323; overflow-x:hidden; overflow-y:scroll; }
	.nav .menu {padding-bottom:60px;}
	.nav .menu > ul {border-bottom:1px solid #e5e7eb;}
	.nav .menu ul li {border:none; float:none; clear:both; display:block; border-bottom:1px solid #e5e7eb; line-height:50px;}
	.nav .menu ul li a {display:block; margin:0 auto; color:#333;}
	.nav .menu ul li a:hover {background-color:#F5F7FA; color:#2563EB;}
	.nav .menu ul li ul {display:block; position:relative; top:auto; left:auto; width:100%; box-shadow:none; border-top:none;}
	.nav .menu ul li ul li {font-size:1em; text-align:left; line-height:45px;}
	.nav .menu ul li ul li a {padding:0 15px 0 40px;}
	body.nav-active {overflow: hidden; position: fixed;left: 0; top: 0; width: 100%;}
	.nav.mobile-nav {display:block;}
	.search-form .s {width:90%;}
	.search-form {float:none;}
	.container {flex-direction:column;}
	.sidebar {width:100%;}
	.main {width:100%;}
	.content-grid {grid-template-columns:repeat(2, 1fr);}
}

@media only screen and (max-width:860px){
	.inner {width:96%;}
	.search-form .s {width:88%;}
	.content-grid {grid-template-columns:1fr; gap:20px;}
}

@media only screen and (max-width:800px){
	.inner {width:96%;}
	.search-form .s {width:86%;}
	.footer {text-align:center;}
	.footer .copyright,.footer .other {float:none; display:block; margin:10px 0;}
	.footer-contact .copyright,.footer-contact .other {display:block; margin:10px 0;}
}

@media only screen and (max-width:747px){
	.header {height:60px;}
	.logo {height:60px;}
	.logo img {height:40px;}
	.nav {top:60px;}
	.nav .menu ul li {line-height:60px;}
	.nav .menu ul li a {line-height:50px;}
	.content-grid {padding:15px;}
	.section-card .card-content {padding:15px;}
}

@media only screen and (max-width:640px){
	.search-form .s {width:84%;}
	.content {padding:15px;}
	.content-grid {padding:15px; gap:15px;}
	.section-card .thumbnail {height:160px;}
	.section-card h2 {font-size:1em; height:2.8em;}
	.section-card .excerpt p {font-size:0.8125em; height:4em;}
	.post h1.post-title {font-size:1.5em;}
	.postnavi {flex-direction:column;}
	.postnavi .prev,.postnavi .next {width:100%;}
}

@media only screen and (max-width:540px){
	.search-form {margin-bottom:10px;}
	.search-form .s {width:82%;}
	.content-grid {gap:12px; padding:12px;}
	.section-card .thumbnail {height:140px;}
	.section-card .card-content {padding:12px;}
	.post h1.post-title {font-size:1.25em;}
	.widget .follow img {width:120px; height:120px;}
}

@media only screen and (max-width:480px) {
	.header {height:50px;}
	.logo {width:120px; height:50px;}
	.logo img {height:35px;}
	.top-other ul li {line-height:50px;}
	.nav {top:50px;}
	.nav .menu {padding-bottom:40px;}
	.nav .menu ul li {line-height:45px;}
	.search-form .s {width:80%;}
	.content {padding:12px;}
	.content-grid {padding:12px; gap:10px;}
	.section-card .thumbnail {height:120px;}
	.section-card h2 {font-size:0.9375em;}
	.post h1.post-title {font-size:1.125em;}
	.postmeta {display:none;}
	.widget .follow img {width:100px; height:100px;}
}

@media only screen and (max-width:420px) {
	.content-grid {padding:10px; gap:8px;}
	.section-card .card-content {padding:10px;}
	.section-card .thumbnail {height:110px;}
	.postnavi {padding:15px;}
}

@media only screen and (max-width:360px) {
	.widget .follow img {width:90px; height:90px;}
	.section-card .thumbnail {height:100px;}
}

@media only screen and (max-width:320px) {
	.search-form .s {width:78%;}
	.section-card .thumbnail {height:90px;}
}

