:root {
--primary-color: #3498db;
--primary-hover: #2980b9;
--text-color: #333;
--text-light: #888;
--bg-color: #f4f6f9;
--white: #ffffff;
--border-color: #e5e5e5;
--radius: 8px;
--shadow: 0 4px 12px rgba(0,0,0,0.05);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.6; color: var(--text-color); background-color: var(--bg-color); }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
a:hover { color: var(--primary-color); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; border-radius: 4px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.site-header { background: var(--white); box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: relative; z-index: 99; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; max-width: 1200px; margin: 0 auto; }
.logo img { height: 35px; width: auto; object-fit: contain; }
.search-box { flex: 1; margin: 0 15px; display: flex; max-width: 400px; }
.search-box input { flex: 1; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 20px 0 0 20px; outline: none; font-size: 14px; transition: border 0.3s; }
.search-box input:focus { border-color: var(--primary-color); }
.search-box button { padding: 8px 18px; border: none; background: var(--primary-color); color: var(--white); border-radius: 0 20px 20px 0; cursor: pointer; font-size: 14px; }
.search-box button:hover { background: var(--primary-hover); }
.menu-btn { width: 28px; height: 22px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; flex-shrink: 0; }
.menu-btn span { display: block; height: 3px; background-color: var(--text-color); border-radius: 3px; }
.main-nav { display: none; width: 100%; background: var(--white); border-top: 1px solid var(--border-color); position: absolute; top: 100%; left: 0; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
.main-nav.show { display: block; }
.nav-list li a { display: block; padding: 12px 20px; border-bottom: 1px dashed var(--border-color); font-size: 15px; }
.nav-list li:last-child a { border-bottom: none; }
.breadcrumb { padding: 15px 0 5px 0; font-size: 13px; color: var(--text-light); }
.breadcrumb a { color: #555; }
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb span { margin: 0 5px; color: #ccc; }
.main-content-wrapper { display: flex; flex-direction: column; gap: 20px; padding-top: 10px; padding-bottom: 40px; }
.article-section { background: var(--white); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-title { font-size: 22px; margin-bottom: 12px; line-height: 1.4; color: #222; }
.article-meta { font-size: 13px; color: var(--text-light); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; }
.article-body { font-size: 16px; color: #444; line-height: 1.8; margin-bottom: 30px; }
.article-body p { margin-bottom: 15px; }
.article-body img { margin: 20px auto; }
.article-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 15px 0; border-top: 1px dashed var(--border-color); margin-bottom: 20px; gap: 15px; }
.article-tags a { display: inline-block; background: #f0f2f5; color: #666; padding: 4px 12px; border-radius: 15px; font-size: 12px; margin-right: 8px; margin-bottom: 5px; }
.article-tags a:hover { background: var(--primary-color); color: var(--white); }
.share-box { font-size: 13px; color: var(--text-light); display: flex; align-items: center; gap: 10px; }
.share-btn { padding: 4px 10px; background: #eee; border-radius: 4px; cursor: pointer; color: #333; }
.author-card { background: #f8f9fa; border-left: 4px solid var(--primary-color); padding: 15px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 30px; font-size: 13px; color: #666; line-height: 1.6; }
.author-card strong { color: #333; }
.article-nav { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; font-size: 14px; }
.article-nav a { display: block; background: var(--bg-color); padding: 12px 15px; border-radius: 6px; border: 1px solid transparent; }
.article-nav a:hover { border-color: var(--primary-color); background: var(--white); }
.related-section h3, .sidebar-widget h3 { font-size: 18px; margin-bottom: 15px; padding-left: 10px; border-left: 4px solid var(--primary-color); color: #222; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.related-card { background: var(--white); border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #ddd; }
.related-card img { width: 100%; aspect-ratio: 11/7; object-fit: cover; border-radius: 0; }
.related-card p { padding: 10px; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 52px; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { background: var(--white); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.sidebar-widget h3 { font-size: 16px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 15px; }
.sidebar-banner img { width: 100%; border-radius: 6px; }
.hot-list li { display: flex; gap: 12px; margin-bottom: 15px; }
.hot-list li:last-child { margin-bottom: 0; }
.hot-list img { width: 90px; height: 65px; object-fit: cover; flex-shrink: 0; border-radius: 4px; }
.hot-info { display: flex; flex-direction: column; justify-content: space-between; }
.hot-info a { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-info span { font-size: 12px; color: var(--text-light); }
.text-list li { margin-bottom: 12px; position: relative; padding-left: 15px; }
.text-list li::before { content: "•"; color: var(--primary-color); position: absolute; left: 0; top: -2px; font-size: 18px; }
.text-list a { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 5px 10px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 12px; color: #555; }
.tag-cloud a:hover { border-color: var(--primary-color); color: var(--primary-color); }
.site-footer { background: #2c3e50; color: #aeb6bf; text-align: center; padding: 30px 15px; font-size: 14px; margin-top: 20px; }
.site-footer a { color: #fff; margin: 0 10px; }
.footer-links { margin-bottom: 15px; }
@media (min-width: 768px) {
.header-inner { padding: 20px 15px; }
.logo img { height: 45px; }
.search-box { flex: none; width: 350px; margin-left: auto; margin-right: 0; }
.menu-btn { display: none; }
.main-nav { display: block !important; position: static; box-shadow: none; border-top: 1px solid var(--border-color); background: var(--white); }
.nav-list { display: flex; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.nav-list li a { border: none; padding: 15px 25px; font-size: 16px; position: relative; }
.nav-list li a:hover { color: var(--primary-color); }
.nav-list li a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px; background: var(--primary-color); transition: all 0.3s; transform: translateX(-50%); }
.nav-list li a:hover::after { width: 60%; }
.main-content-wrapper { flex-direction: row; align-items: flex-start; }
.article-section { flex: 1; min-width: 0; padding: 30px 40px; }
.sidebar { width: 320px; flex-shrink: 0; }
.sidebar .sidebar-widget:last-child { position: sticky; top: 20px; }
.article-title { font-size: 32px; margin-bottom: 15px; }
.article-nav { flex-direction: row; justify-content: space-between; }
.article-nav a { flex: 1; margin: 0 10px; }
.article-nav a:first-child { margin-left: 0; }
.article-nav a:last-child { margin-right: 0; }
.related-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.sidebar-qrcode {
text-align: center;
padding: 20px 15px;
border-radius: 10px;
}
.sidebar-qrcode h3 {
font-size: 16px;
color: #333;
margin-bottom: 15px;
font-weight: 600;
}
.sidebar-qrcode .qr-code {
display: inline-block;
background: #fff;
padding: 10px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.sidebar-qrcode .qr-code canvas {
display: block !important;
width: 150px !important;
height: 150px !important;
}
.sidebar-qrcode .qr-code img {
display: none !important;
}
@media (max-width: 768px) {
.sidebar-qrcode {
display: none;
}
}
.list-header {
border-bottom: 2px solid #333;
padding-bottom: 10px;
margin-bottom: 20px;
}
.list-header h2 {
font-size: 20px;
color: #333;
margin: 0;
}
.article-list {
display: flex;
flex-direction: column;
gap: 20px;
}
.list-item {
display: flex;
gap: 20px;
padding-bottom: 20px;
border-bottom: 1px solid #eee;
}
.list-item:last-child {
border-bottom: none;
}
.item-thumb {
flex-shrink: 0;
width: 180px;
height: 110px;
overflow: hidden;
border-radius: 4px;
}
.item-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.item-thumb:hover img {
transform: scale(1.05);
}
.item-detail {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.item-title {
font-size: 18px;
margin: 0 0 8px 0;
line-height: 1.4;
}
.item-title a {
color: #333;
text-decoration: none;
font-weight: bold;
}
.item-title a:hover {
color: #007bff;
}
.item-desc {
font-size: 14px;
color: #666;
line-height: 1.6;
margin-bottom: 10px;
}
.item-meta {
font-size: 12px;
color: #999;
display: flex;
gap: 15px;
}
.pagination-wrapper {
margin: 30px 0;
display: flex;
justify-content: center;
}
.pagination-wrapper ul.pagination {
display: flex;
list-style: none;
padding: 0;
gap: 5px;
}
.pagination-wrapper ul.pagination li a,
.pagination-wrapper ul.pagination li span {
padding: 8px 14px;
border: 1px solid #ddd;
color: #333;
text-decoration: none;
border-radius: 4px;
}
.pagination-wrapper ul.pagination li.active span {
background-color: #333;
color: #fff;
border-color: #333;
}
.pagination-wrapper ul.pagination li a:hover {
background-color: #f5f5f5;
}
.sidebar-intro-box {
border-bottom: 1px dashed #eee;
padding-bottom: 15px;
}
.home-focus-section {
display: flex;
gap: 20px;
border-bottom: 1px solid #eee;
padding-bottom: 25px;
margin-bottom: 20px;
}
.focus-slide {
width: 50%;
position: relative;
border-radius: 4px;
overflow: hidden;
height: 300px;
}
.focus-slide img {
width: 100%;
height: 100%;
object-fit: cover;
}
.slide-title {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(0,0,0,0.7);
color: #fff;
padding: 10px 15px;
font-size: 15px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.focus-headlines {
width: 50%;
display: flex;
flex-direction: column;
}
.top-news h2 {
font-size: 20px;
margin: 0 0 10px 0;
line-height: 1.4;
}
.top-news h2 a {
color: #333;
text-decoration: none;
font-weight: bold;
}
.top-news h2 a:hover { color: #007bff; }
.top-news p {
font-size: 14px;
color: #666;
line-height: 1.6;
margin: 0;
}
.sub-news {
list-style: none;
padding: 0;
margin: 15px 0 0 0;
border-top: 1px dashed #ddd;
padding-top: 15px;
}
.sub-news li {
margin-bottom: 10px;
font-size: 14px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sub-news li a { color: #444; text-decoration: none; }
.sub-news li a:hover { color: #007bff; }
.sub-news li::before {
content: "•";
color: #999;
margin-right: 8px;
}
.home-cats-row {
display: flex;
gap: 20px;
margin-top: 30px;
}
.cat-box {
flex: 1;
border: 1px solid #eee;
border-radius: 4px;
padding: 15px;
background: #fff;
}
.cat-box-title {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 2px solid #333;
padding-bottom: 8px;
margin-bottom: 15px;
}
.cat-box-title h4 {
margin: 0;
font-size: 16px;
color: #333;
}
.cat-box-title a {
font-size: 12px;
color: #999;
text-decoration: none;
}
@media screen and (max-width: 768px) {
.main-content-wrapper {
display: flex;
flex-direction: column;
gap: 20px;
padding: 10px;
}
.article-section, .sidebar {
width: 100% !important;
}
.home-focus-section {
flex-direction: column;
gap: 15px;
}
.focus-slide, .focus-headlines {
width: 100% ;
height: auto;
}
.focus-slide {
height: 200px;
}
.related-grid {
grid-template-columns: repeat(2, 1fr) !important;
gap: 10px !important;
}
.home-cats-row {
flex-direction: column;
gap: 15px;
}
.sidebar-qrcode {
display: none !important;
}
}