/*
Theme Name: 弱电运维网 · News Portal
Template: news-portal
Version: 0.1.0
Description: 保留行业栏目与双列资讯布局，兼顾桌面与移动端阅读。
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: rdyww-news-portal
*/
:root { --rdyww-blue:#1761b3; --rdyww-ink:#182c45; --rdyww-muted:#657386; --rdyww-line:#e0e7ef; }
body, button, input, select, textarea, h1, h2, h3, h4, h5, h6 { font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif; }
body { background:#f4f6f9; color:var(--rdyww-ink); font-size:16px; line-height:1.75; overflow:visible; }
a { color:inherit; }
a:hover, a:focus { color:var(--rdyww-blue); }
a:focus-visible, button:focus-visible, input:focus-visible { outline:3px solid #79aee8; outline-offset:4px; }
.mt-container { width:min(1240px,calc(100% - 48px)); }
#page { background:transparent; }
.np-top-header-wrap { background:#18334f; color:#d6e3f0; font-size:13px; }
.np-logo-section-wrapper { padding:30px 0 28px; background:#fff; }
.np-logo-section-wrapper > .mt-container { display:flex; align-items:center; justify-content:space-between; gap:30px; }
.site-branding { float:none; }
#masthead .site-branding { float:none; margin:0; }
.site-branding .site-title { font-size:34px; line-height:1.25; font-weight:800; letter-spacing:2px; margin:0; }
.site-branding .site-title a { color:var(--rdyww-blue); }
.site-branding .site-description { font-size:14px; letter-spacing:2px; color:var(--rdyww-muted); margin:9px 0 0; }
.rdyww-header-search { margin-left:auto; }
.rdyww-search { display:flex; margin:0; }
.rdyww-search label { margin:0; flex:1; min-width:0; }
.rdyww-search input[type=search] { width:260px; height:44px; border:1px solid #cbd6e2; border-right:0; border-radius:4px 0 0 4px; font-size:14px; padding:8px 12px; background:white; color:var(--rdyww-ink); }
.rdyww-search button { border:0; height:44px; background:var(--rdyww-blue); color:#fff; padding:0 19px; border-radius:0 4px 4px 0; font-size:14px; cursor:pointer; }
.np-header-menu-block-wrap, #np-menu-wrap { background:var(--rdyww-blue); }
.np-header-menu-block-wrap::before, .np-header-menu-block-wrap::after { display:none; }
#np-menu-wrap::before, #np-menu-wrap::after, #np-menu-wrap .mt-container::before { display:none; }
#np-menu-wrap { margin-bottom:0; }
#site-navigation ul li a { color:white; font-size:15px; padding:14px; line-height:24px; }
#site-navigation ul ul li a { color:var(--rdyww-ink); }
.np-home-icon { background:#124c8e; }
.np-home-icon a { padding:14px 17px; line-height:24px; }
.np-icon-elements-wrapper { display:none; }
.main-navigation ul > li.current-menu-item > a, .main-navigation ul > li:hover > a { background:#124c8e; }
.np-ticker-wrapper, .np-news-ticker-wrapper { background:#fff; }
#content { padding:28px 0 48px; }
.home.blog #content .mt-container { margin:0 auto; }
.rdyww-panel { border:1px solid var(--rdyww-line); background:#fff; border-radius:5px; padding:20px; }
.rdyww-section-title { font-size:18px; font-weight:700; line-height:1.4; margin:0 0 17px; padding-left:11px; border-left:3px solid var(--rdyww-blue); }
.rdyww-focus { display:grid; grid-template-columns:minmax(0,1fr) 285px; gap:22px; margin-bottom:26px; }
.rdyww-focus-main { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); gap:24px; }
.rdyww-focus-main > *, .rdyww-content-grid > *, .rdyww-section-grid > * { min-width:0; }
.rdyww-lead { position:relative; display:block; min-height:348px; background:#1c4267; overflow:hidden; border-radius:3px; }
.rdyww-lead > img { width:100%; height:100%; position:absolute; inset:0; object-fit:cover; }
.rdyww-lead::after { content:""; position:absolute; inset:0; background:linear-gradient(transparent 20%,rgba(9,27,46,.9)); }
.rdyww-lead-caption { position:absolute; bottom:22px; left:22px; right:22px; color:#fff; z-index:1; }
.rdyww-lead-caption > span { background:var(--rdyww-blue); padding:3px 8px; font-size:13px; }
.rdyww-lead h1 { margin:12px 0 0; font-size:25px; line-height:1.55; font-weight:700; color:#fff; }
.rdyww-headlines article { padding:12px 0; border-bottom:1px solid #edf0f4; }
.rdyww-headlines article:last-child { border-bottom:0; padding-bottom:0; }
.rdyww-headlines h3 { margin:0 0 5px; font-size:16px; line-height:1.65; font-weight:600; }
.rdyww-headlines h3 a { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.rdyww-headlines time, .rdyww-channel-lead time { color:var(--rdyww-muted); font-size:13px; }
.rdyww-content-grid { display:grid; grid-template-columns:minmax(0,1fr) 285px; gap:22px; }
.rdyww-section-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.rdyww-channel-header { display:flex; justify-content:space-between; gap:14px; align-items:baseline; padding-bottom:14px; border-bottom:1px solid var(--rdyww-line); margin-bottom:4px; }
.rdyww-channel-header .rdyww-section-title { margin:0; }
.rdyww-more { font-size:14px; color:var(--rdyww-muted); white-space:nowrap; }
.rdyww-title-list { list-style:none; padding:0; margin:0; }
.rdyww-title-list li { display:flex; align-items:baseline; gap:12px; padding:10px 0; border-bottom:1px dashed #e5eaf0; }
.rdyww-title-list li:last-child { border-bottom:0; }
.rdyww-title-list a { min-width:0; flex:1; font-size:15px; line-height:1.7; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.rdyww-title-list time { color:var(--rdyww-muted); font-size:13px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.rdyww-focus-latest .rdyww-title-list li { padding:9px 0; }
.rdyww-focus-latest .rdyww-title-list a { -webkit-line-clamp:2; }
.rdyww-channel-lead { display:flex; gap:14px; align-items:center; padding:16px 0; border-bottom:1px dashed #e5eaf0; }
.rdyww-channel-lead img { width:104px; height:74px; object-fit:cover; border-radius:3px; }
.rdyww-channel-lead > span { flex:1; min-width:0; }
.rdyww-channel-lead strong { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:15px; line-height:1.6; font-weight:600; }
.rdyww-channel-lead time { display:block; margin-top:4px; }
.rdyww-sidebar > section { margin-bottom:22px; }
.rdyww-category-nav { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.rdyww-category-nav li { margin:0; font-size:14px; }
.rdyww-category-nav a { display:block; padding:8px 4px; background:#f1f5fa; text-align:center; border-radius:3px; }
.rdyww-category-nav a:hover { background:#e4eefb; }
.rdyww-archive-header { border-bottom:1px solid var(--rdyww-line); padding:2px 5px 20px; }
.rdyww-archive-header h1 { font-size:29px; margin:12px 0 0; font-weight:700; }
.rdyww-breadcrumb { color:var(--rdyww-muted); font-size:14px; display:flex; flex-wrap:wrap; gap:12px; }
.rdyww-article-row { padding:24px 5px; display:flex; gap:22px; border-bottom:1px solid var(--rdyww-line); }
.rdyww-row-thumb { flex:0 0 180px; }
.rdyww-row-thumb img { width:180px; height:125px; object-fit:cover; border-radius:3px; }
.rdyww-article-row h2 { margin:0 0 10px; font-size:20px; line-height:1.65; font-weight:600; }
.rdyww-article-row p { margin:0 0 10px; font-size:15px; color:var(--rdyww-muted); line-height:1.85; }
.rdyww-article-row time { color:var(--rdyww-muted); font-size:13px; }
.rdyww-reading { padding:32px 40px; }
.rdyww-reading h1 { font-size:31px; line-height:1.6; font-weight:700; margin:24px 0 15px; }
.rdyww-article-meta { display:flex; flex-wrap:wrap; gap:24px; color:var(--rdyww-muted); font-size:14px; border-bottom:1px solid var(--rdyww-line); padding-bottom:23px; }
.rdyww-article-body { margin:26px 0; font-size:17px; line-height:2; overflow-wrap:anywhere; }
.rdyww-article-body p, .rdyww-article-body div, .rdyww-article-body span { max-width:100%; }
.rdyww-article-body img { max-width:100%; height:auto; margin:14px auto; }
.rdyww-article-body table { display:block; max-width:100%; overflow-x:auto; }
.rdyww-article-body .missing-legacy-image { display:block; color:var(--rdyww-muted); font-size:14px; margin:18px 0; padding:12px 16px; border-left:2px solid #b6c6d7; background:#f5f7fa; }
.np-footer-widget-wrapper { background:#eaf0f6; }
.bottom-footer { background:#18334f; color:#d6e3f0; font-size:14px; }
.bottom-footer a { color:#d6e3f0; }
.rdyww-single .nav-links { display:grid; grid-template-columns:1fr; gap:14px; font-size:14px; border-top:1px solid var(--rdyww-line); padding-top:20px; }
.rdyww-single .nav-links > div { width:auto; float:none; }
@media(max-width:1100px) {
    #site-navigation ul li a { font-size:14px; padding-left:10px; padding-right:10px; }
    .rdyww-focus, .rdyww-content-grid { grid-template-columns:minmax(0,1fr) 245px; gap:18px; }
    .rdyww-focus-main { grid-template-columns:1fr; }
    .rdyww-lead { min-height:310px; }
    .rdyww-headlines article { padding:9px 0; }
    .rdyww-section-grid { gap:18px; }
    .rdyww-panel { padding:17px; }
    .rdyww-reading { padding:28px; }
}
@media(max-width:768px) {
    .mt-container { width:calc(100% - 28px); }
    .np-logo-section-wrapper { padding:22px 0; }
    .np-logo-section-wrapper > .mt-container { flex-wrap:wrap; gap:18px; }
    .site-branding .site-title { font-size:29px; }
    .rdyww-header-search { width:100%; }
    .rdyww-search input[type=search] { width:100%; }
    #site-navigation ul li a { font-size:16px; }
    .menu-toggle { color:white; }
    .rdyww-focus, .rdyww-content-grid, .rdyww-section-grid { grid-template-columns:1fr; }
    .rdyww-focus-main { gap:20px; }
    .rdyww-focus-latest { display:none; }
    .rdyww-lead { min-height:310px; }
    .rdyww-lead h1 { font-size:24px; }
    .rdyww-headlines h3, .rdyww-title-list a { font-size:16px; }
    .rdyww-reading { padding:22px 19px; }
    .rdyww-reading h1 { font-size:25px; }
    .rdyww-article-body { font-size:17px; }
    .rdyww-row-thumb { flex-basis:106px; }
    .rdyww-row-thumb img { width:106px; height:82px; }
    .rdyww-article-row { gap:14px; }
    .rdyww-article-row h2 { font-size:18px; }
    .rdyww-article-row p { display:none; }
    .rdyww-sidebar { margin-top:4px; }
}
