/*
Theme Name: daboloTheme
Theme URI: https://example.com/
Author: Dabolo
Author URI: https://example.com/
Description: A custom WordPress theme for news and blogging.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dabolotheme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/
*,:after,:before{box-sizing:border-box}
body{background-color:#f9f9f9;color:#333;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;line-height:1.6;margin:0;min-height:100vh;overflow-x:hidden;padding:0}
.site-content{flex:1}
/* 如果首页内容较少，取消自动拉伸填满屏幕高度，让页脚自然紧贴内容 */
body.home .site-content, body.front-page .site-content {flex:none}
a{color:#0056b3;text-decoration:none;transition:color .2s}
a:hover{color:#003d82;text-decoration:underline}
img{display:block;height:auto;max-width:100%}
h1,h2,h3,h4,h5,h6{color:#111;line-height:1.2;margin-top:0}
.hq-header{background:#fff;border-bottom:1px solid #eee;padding:15px 0;transition:background .3s}
.hq-sticky{backdrop-filter:blur(10px);position:sticky;top:0;z-index:999}
body.home.has-sticky-header .hq-header{left:0;position:fixed;top:0;width:100%;z-index:999}
body.admin-bar.home.has-sticky-header .hq-header{top:32px}
@media (max-width:782px){body.admin-bar.home.has-sticky-header .hq-header{top:46px}
}
.hq-wrap{justify-content:space-between;margin:0 auto;max-width:1200px;padding:0 20px}
.hq-brand,.hq-wrap{align-items:center;display:flex}
.hq-brand{gap:15px}
.hq-link{align-items:center;display:flex;max-width:240px}
.hq-logo{display:block;max-height:50px;width:auto}
.hq-title{font-size:1.5rem;font-weight:700;letter-spacing:1px;margin:0}
.hq-title-link{color:#2d5cf6;text-decoration:none;transition:color .3s}
.hq-title-link:hover{color:#0b45d9}
.hq-nav{align-items:center;display:flex;gap:30px}
.hq-nav-link{color:#123;font-size:1.05rem;font-weight:600;text-decoration:none;transition:color .3s}
.hq-nav-active,.hq-nav-link:hover{color:#2d5cf6;text-decoration:none}
.hq-actions{align-items:center;border-left:1px solid #ddd;display:flex;gap:15px;margin-left:15px;padding-left:15px}
.hq-action-link{color:#555;font-size:.95rem;text-decoration:none;transition:color .3s}
.hq-action-link:hover{color:#2d5cf6;text-decoration:none}
.site-main{padding:40px 0}
.post-article{background:#fff;border-radius:8px;box-shadow:0 2px 5px rgba(0,0,0,.05);margin-bottom:30px;padding:30px}
.entry-title{font-size:1.8rem;margin-bottom:10px}
.entry-meta{color:#777;font-size:.85rem;margin-bottom:20px}
.entry-meta a{color:#777}
/* 文章详情与页面内容排版 (参照截图优化) */
.entry-content{color:#444;font-size:16px;line-height:1.8;word-wrap:break-word}
.entry-content p{margin:0 0 15px}
.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4,.entry-content h5,.entry-content h6{color:#222;font-weight:700;line-height:1.4;margin:30px 0 15px}
.entry-content h1{font-size:24px;border-bottom:1px solid #eee;padding-bottom:10px}
.entry-content h2{background-color:#f2f7ff;border-left:4px solid #2d5cf6;font-size:20px;padding:10px 15px;margin-top:35px}
.entry-content h3{font-size:18px;margin-top:25px}
.entry-content h4{font-size:16px}
.entry-content a{color:#2d5cf6;text-decoration:none;border-bottom:1px solid rgba(45,92,246,0.3);transition:all 0.3s}
.entry-content a:hover{color:#0b45d9;border-bottom-color:#0b45d9}
.entry-content b,.entry-content strong{color:#111;font-weight:700}
.entry-content ol,.entry-content ul{margin:0 0 20px 20px;padding:0;color:#444}
.entry-content li{margin-bottom:8px}
.entry-content blockquote{background:#f4f8ff;border:1px solid #a3c2f9;border-left:4px solid #2d5cf6;color:#2d5cf6;font-style:normal;margin:0 0 20px;padding:15px;border-radius:4px;font-size:15px}
.entry-content hr{border:0;border-top:1px dashed #eaeaea;margin:30px 0}
.entry-content img{border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,0.05);margin-bottom:15px}
.container{margin:0 auto;max-width:1200px;padding:0 20px}
.hq-post-grid{display:grid;gap:25px;margin-bottom:40px}
.hq-grid-cols-2{grid-template-columns:repeat(2,1fr)}
.hq-grid-cols-3{grid-template-columns:repeat(3,1fr)}
.hq-grid-cols-4{grid-template-columns:repeat(4,1fr)}
@media (max-width:992px){.hq-grid-cols-3,.hq-grid-cols-4{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:768px){.hq-grid-cols-2,.hq-grid-cols-3,.hq-grid-cols-4{grid-template-columns:1fr}
}
.hq-post-card{background:#fff;border-radius:12px;box-shadow:0 4px 15px rgba(0,0,0,.05);display:flex;flex-direction:column;overflow:hidden;transition:transform .3s ease,box-shadow .3s ease}
.hq-post-card:hover{box-shadow:0 10px 25px rgba(0,0,0,.1);transform:translateY(-5px)}
.hq-post-thumb{aspect-ratio:16/10;overflow:hidden;width:100%}
.hq-post-thumb img{height:100%;object-fit:cover;transition:transform .5s ease;width:100%}
.hq-post-card:hover .hq-post-thumb img{transform:scale(1.05)}
.hq-post-content{display:flex;flex:1;flex-direction:column;padding:20px}
.hq-post-meta{color:#999;font-size:13px;margin-bottom:12px}
.hq-post-title{font-size:18px;font-weight:700;line-height:1.4;margin:0 0 12px}
.hq-post-title a{color:#333;text-decoration:none;transition:color .3s}
.hq-post-title a:hover{color:#2d5cf6}
.hq-post-excerpt{color:#666;display:-webkit-box;font-size:14px;-webkit-line-clamp:3;line-height:1.6;margin-bottom:0;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
.hq-pagination{display:flex;justify-content:center;margin-bottom:30px;margin-top:50px}
.hq-pagination ul{display:flex;gap:8px;list-style:none;margin:0;padding:0}
.hq-pagination li{margin:0}
.hq-pagination a,.hq-pagination span{align-items:center;background:#fff;border:1px solid #eaeaea;border-radius:6px;color:#555;display:flex;font-size:14px;height:40px;justify-content:center;min-width:40px;padding:0 15px;text-decoration:none;transition:all .3s ease}
.hq-pagination a:hover{border-color:#333;color:#333}
.hq-pagination .current{background:#333;border-color:#333;color:#fff;font-weight:700}
.hq-pagination .dots{background:0 0;border:none;color:#999}
.post-thumbnail{text-align:center}
.post-thumbnail img{display:inline-block;height:auto;max-width:100%}
.entry-content img{display:block;height:auto;margin:0 auto;max-width:100%}
.entry-content .wp-block-image,.entry-content figure{display:block;margin-left:auto;margin-right:auto;text-align:center}
.entry-content figure.wp-block-image:not(.alignleft):not(.alignright){display:table;margin-left:auto!important;margin-right:auto!important}
.entry-content .wp-block-image img,.entry-content figure img{margin:0 auto}
.entry-content p:has(>a:only-child>img),.entry-content p:has(>img:only-child){text-align:center}
.entry-content .aligncenter{display:block;margin-left:auto!important;margin-right:auto!important;text-align:center}
.entry-content .alignleft{float:left;margin-bottom:20px;margin-right:20px}
.entry-content .alignright{float:right;margin-bottom:20px;margin-left:20px}
.hq-post-navigation{clear:both;margin-top:40px}
.hq-post-navigation .nav-links{display:flex;gap:15px;justify-content:space-between}
.hq-post-navigation .nav-next,.hq-post-navigation .nav-previous{background:#fff;border-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.05);flex:1;transition:all .3s ease}
.hq-post-navigation .nav-next:hover,.hq-post-navigation .nav-previous:hover{box-shadow:0 4px 12px rgba(0,0,0,.08);transform:translateY(-2px)}
.hq-post-navigation a{display:block;padding:24px;text-decoration:none}
.hq-post-navigation .nav-wrap{align-items:center;display:flex;justify-content:space-between;width:100%}
.hq-post-navigation .prev-wrap .nav-text{text-align:right}
.hq-post-navigation .next-wrap .nav-text{text-align:left}
.hq-post-navigation .nav-subtitle{color:#b0b0b0;display:block;font-size:14px;margin-bottom:6px}
.hq-post-navigation .nav-title{color:#444;display:block;font-size:16px;line-height:1.4;transition:color .3s ease}
.hq-post-navigation a:hover .nav-title{color:#2d5cf6}
.hq-post-navigation .nav-arrow{align-items:center;color:#555;display:flex;justify-content:center}
.hq-random-posts-wrap{margin-top:40px;padding-top:20px}
.hq-random-posts-title{border-left:4px solid #2d5cf6;color:#333;font-size:20px;line-height:1.2;margin-bottom:20px;padding-left:12px}
.hq-random-post-card .hq-post-title{font-size:16px;margin-bottom:10px}
.hq-breadcrumb{color:#333;font-size:16px;margin-bottom:20px}
.hq-breadcrumb ol{flex-wrap:wrap;list-style:none;margin:0;padding:0}
.hq-breadcrumb li,.hq-breadcrumb ol{align-items:center;display:flex}
.hq-breadcrumb li+li:before{color:#999;content:"/";margin:0 10px}
.hq-breadcrumb a{color:#666;text-decoration:none}
.hq-breadcrumb a:hover{color:#007bff}
.hq-breadcrumb .current{color:#333;font-weight:500}
.hq-archive-header{margin-bottom:40px;text-align:center}
.hq-archive-header .page-title{color:#333;font-size:2.2rem;font-weight:700;margin:0 0 10px}
.hq-archive-header .archive-description{color:#666;font-size:1.1rem;line-height:1.6;margin:0 auto;max-width:800px}
.hq-footer{background:#fff;border-top:1px solid #eaeaea;margin-top:40px}
.hq-footer-top{padding:60px 0}
.hq-footer-columns{display:flex;flex-wrap:wrap;gap:40px}
.hq-footer-col{flex:1;min-width:200px}
.hq-footer-col-1{flex:2;min-width:300px;padding-right:40px}
.hq-footer-logo{margin-bottom:20px}
.hq-footer-logo img{max-height:45px;width:auto}
.hq-footer-title{color:#123;font-size:1.15rem;font-weight:700;margin-bottom:10px}
.hq-footer-desc{color:#777;font-size:.95rem;line-height:1.8}
.hq-footer-col-title{color:#123;font-size:1.15rem;font-weight:700;margin-bottom:25px}
.hq-footer-col-content{color:#666;font-size:.95rem;line-height:1.8}
.hq-footer-col-content p{margin:0 0 15px}
.hq-footer-col-content a{color:#2d5cf6;text-decoration:none;transition:color .3s}
.hq-footer-col-content a:hover{color:#0b45d9;text-decoration:underline}
.hq-footer-bottom{border-top:1px solid #eaeaea;padding:20px 0}
.hq-footer-copyright{color:#888;font-size:.9rem;line-height:1.8}
.hq-footer-copyright p{margin:0 0 5px}
.hq-footer-copyright p:last-child{margin:0}
.hq-footer-copyright a{color:#888}
.hq-footer-copyright a:hover{color:#2d5cf6}
@media (max-width:768px){.hq-wrap{align-items:flex-start;flex-direction:column;padding:10px 20px}
.hq-nav{flex-wrap:wrap;gap:15px;margin-top:15px;width:100%}
.hq-actions{border-left:none;margin-left:0;margin-top:10px;padding-left:0;width:100%}
.post-article{padding:15px}
.entry-title{font-size:1.5rem}
.hq-footer-columns{flex-direction:column;gap:30px}
.hq-footer-col-1{padding-right:0}
.hq-post-navigation .nav-links{flex-direction:column}
}
