: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;
}
}
.article-lead-box {
background-color: #f7f9fa;
border-left: 4px solid #d4af37;
padding: 20px 24px;
margin: 25px 0;
border-radius: 0 8px 8px 0;
box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.lead-tag {
display: inline-block;
font-size: 12px;
color: #d4af37;
font-weight: bold;
letter-spacing: 1px;
text-transform: uppercase;
margin-bottom: 8px;
}
.lead-main-title {
font-size: 20px;
color: #2c3e50;
margin: 0 0 6px 0;
font-weight: 600;
letter-spacing: 0.5px;
}
.lead-sub-title {
font-size: 15px;
color: #7f8c8d;
margin: 0;
line-height: 1.5;
}