/*
Theme Name: NiZY Portal
Theme URI: https://nlzy.top
Description: 企业门户风格主题（蓝色系定制版）：白色顶栏 + 蓝色导航 + 全宽轮播头图 + 新闻式文章列表。为「逆流之鱼思考录」定制。
Author: 逆流之鱼 × WorkBuddy
Version: 1.2.0
License: GNU General Public License v2 or later
Text Domain: nizy-portal
*/

/* ---------- 基础 ---------- */
*{box-sizing:border-box}
body{margin:0;font-family:"Microsoft YaHei","PingFang SC","Hiragino Sans GB","Helvetica Neue",Arial,sans-serif;background:#f4f6fb;color:#333;font-size:15px}
img{max-width:100%;height:auto}
a{color:#0B57D0}
.container{max-width:1200px;margin:0 auto;padding:0 16px}

/* ---------- 顶栏 ---------- */
.site-header{background:#fff;border-bottom:1px solid #e8edf7}
.top-bar{display:flex;align-items:center;justify-content:space-between;padding:10px 20px}
.site-brand .custom-logo{max-height:60px;width:auto}
.brand-link{display:flex;align-items:center;gap:16px;text-decoration:none;color:#0F2E55}
.brand-logo{width:60px;height:60px;display:block}
.brand-name{font-size:30px;font-weight:800;letter-spacing:4px;color:#0F2E55;line-height:1}
.top-right{display:flex;align-items:center;gap:16px;font-size:13px;color:#8896ae}
.top-slogan{background:#0B57D0;color:#fff;padding:6px 14px;border-radius:6px;line-height:1.5;text-align:left}
.top-slogan strong{display:block;font-size:15px;letter-spacing:2px}
.top-slogan small{font-size:12px;opacity:.85}

/* ---------- 蓝色导航 ---------- */
.main-nav{background:#0B57D0}
.nav-menu{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap}
.nav-menu li{position:relative}
.nav-menu a{display:block;color:#fff;font-size:16px;font-weight:700;padding:0 22px;line-height:48px;text-decoration:none;white-space:nowrap}
.nav-menu a:hover,.nav-menu .current-menu-item>a,.nav-menu .current_page_item>a,.nav-menu .current>a{background:#0842A0}
.nav-menu li ul{display:none;position:absolute;left:0;top:100%;background:#0B57D0;min-width:170px;list-style:none;margin:0;padding:0;box-shadow:0 3px 10px rgba(10,40,110,.2);z-index:30}
.nav-menu li:hover>ul{display:block}
.nav-menu li ul a{line-height:40px;font-size:14px;font-weight:400}

/* ---------- 头图轮播 ---------- */
.hero{position:relative;height:480px;overflow:hidden;background:#0a2c74}
.hero-slide{position:absolute;inset:0;display:block;background-size:cover;background-position:center;opacity:0;transition:opacity .8s ease;text-decoration:none}
.hero-slide.active{opacity:1}
.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,20,60,.62),rgba(8,40,110,.30) 52%,rgba(10,50,130,.08))}
.hero-caption{position:absolute;left:8%;right:8%;bottom:16%;display:block;max-width:740px}
.hero-cat{display:block;color:#86C8FF;font-size:22px;font-weight:700;letter-spacing:3px;text-shadow:0 1px 8px rgba(4,25,80,.6)}
.hero-title{display:block;color:#fff;font-size:42px;font-weight:800;line-height:1.3;margin:8px 0 10px;text-shadow:0 2px 14px rgba(4,25,80,.5)}
.hero-sub{display:-webkit-box;color:rgba(255,255,255,.94);font-size:16px;line-height:1.7;text-shadow:0 1px 6px rgba(4,25,80,.55);-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hero-bar{display:block;width:64px;height:5px;background:linear-gradient(90deg,#0B57D0,#38BDF8);margin-top:14px;border-radius:3px}
.hero-arrow{position:absolute;top:50%;transform:translateY(-50%);width:50px;height:84px;border:none;background:rgba(6,30,90,.30);color:#fff;font-size:20px;cursor:pointer;z-index:5;transition:background .3s}
.hero-arrow:hover{background:rgba(6,30,90,.55)}
.hero-arrow.prev{left:0}.hero-arrow.next{right:0}
.hero-dots{position:absolute;bottom:16px;left:0;right:0;text-align:center;z-index:5}
.hero-dots .dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.55);margin:0 5px;cursor:pointer;transition:background .3s}
.hero-dots .dot.active{background:#38BDF8}
.g1{background-image:linear-gradient(120deg,#0a2a66,#1452c9 55%,#3b82f6)}
.g2{background-image:linear-gradient(120deg,#04214e,#0b57d0 55%,#2e7cf6)}
.g3{background-image:linear-gradient(120deg,#0b2e52,#1d4e89 55%,#3b9df8)}
.g4{background-image:linear-gradient(120deg,#091d44,#16409c 55%,#2563eb)}
.g5{background-image:linear-gradient(120deg,#0e2a4e,#12519e 55%,#1e90ff)}

/* ---------- 首页内容区 ---------- */
.home-section{display:flex;gap:24px;margin-top:28px;margin-bottom:44px;align-items:flex-start}
.home-main{flex:1 1 auto;min-width:0}
.home-side{flex:0 0 300px}
.section-head{display:flex;align-items:baseline;gap:12px;border-bottom:2px solid #0B57D0;margin-bottom:6px}
.section-head h2,.section-head h1{margin:0;font-size:22px;color:#0b2545;border-left:6px solid #0B57D0;padding-left:12px;line-height:1.35;font-weight:800}
.section-head .en{color:#b3c1d9;font-size:12px;letter-spacing:3px}

.post-row{display:flex;gap:18px;padding:20px 4px;border-bottom:1px dashed #e2e8f5}
.row-date{flex:0 0 66px;background:#f2f6ff;border:1px solid #dce6f8;border-radius:6px;text-align:center;padding:9px 0;text-decoration:none}
.row-date .d{display:block;font-size:25px;font-weight:800;color:#0B57D0;line-height:1.1;font-family:Arial,sans-serif}
.row-date .m{display:block;font-size:12px;color:#8fa2c4;margin-top:2px}
.row-body{flex:1 1 auto;min-width:0}
.row-title{margin:0 0 7px;font-size:18px;line-height:1.45;font-weight:700}
.row-title a{color:#16233a;text-decoration:none}
.row-title a:hover{color:#0B57D0}
.row-excerpt{margin:0 0 9px;color:#6b7890;font-size:14px;line-height:1.75}
.row-meta{display:flex;gap:14px;align-items:center;font-size:12px;color:#a3b1c9}
.cat-tag{background:#eaf3ff;color:#0B57D0;border:1px solid #bfdbff;padding:2px 9px;border-radius:4px;text-decoration:none;font-size:12px}
.no-posts{padding:40px 0;color:#99a5bb;text-align:center}
.pagination{margin:26px 0;text-align:center}
.pagination .page-numbers{display:inline-block;padding:6px 13px;border:1px solid #d5dfef;margin:0 3px;color:#40547a;text-decoration:none;background:#fff}
.pagination .page-numbers.current,.pagination .page-numbers:hover{background:#0B57D0;border-color:#0B57D0;color:#fff}

/* ---------- 侧边栏 ---------- */
.widget{background:#fff;border:1px solid #e6ecf8;border-radius:10px;padding:16px 18px;margin-bottom:20px}
.widget-title{margin:0 0 10px;font-size:16px;color:#0b2545;border-left:5px solid #0B57D0;padding-left:10px;line-height:1.35;font-weight:800}
.widget ul{list-style:none;margin:0;padding:0}
.widget li{padding:8px 0;border-bottom:1px dashed #edf1fa;font-size:14px;display:flex;justify-content:space-between;gap:8px}
.widget li:last-child{border-bottom:none}
.widget li a{color:#3d4f73;text-decoration:none;flex:1 1 auto;min-width:0}
.widget li a:hover{color:#0B57D0}
.widget li span{color:#aab8d2;font-size:12px}

/* ---------- 文章页 ---------- */
.single-wrap{max-width:880px;margin-top:28px;margin-bottom:44px;background:#fff;border:1px solid #e6ecf8;border-radius:10px;padding:30px 36px}
.single-title{font-size:26px;line-height:1.45;margin:0;font-weight:800;color:#0b2545}
.single-meta{display:flex;gap:14px;align-items:center;color:#8fa2c4;font-size:13px;margin:14px 0 20px}
.single-thumb{margin-bottom:20px}
.entry-content{font-size:16px;line-height:1.95;color:#35405a;word-wrap:break-word}
.entry-content p{margin:0 0 1.15em}
.entry-content h2,.entry-content h3{border-left:5px solid #0B57D0;padding-left:10px;line-height:1.4;color:#0b2545}
.entry-content blockquote{margin:1.2em 0;padding:10px 16px;background:#f2f7ff;border-left:4px solid #0B57D0;color:#4a5a7c}
.entry-content img{border-radius:6px}
.entry-content a{text-decoration:underline}
.post-nav{display:flex;justify-content:space-between;gap:20px;margin-top:30px;padding-top:18px;border-top:1px dashed #e2e8f5;font-size:14px}
.post-nav a{color:#40547a;text-decoration:none}
.post-nav a:hover{color:#0B57D0}

/* ---------- 评论 ---------- */
.comments-area{margin-top:28px}
.comment-list{list-style:none;padding:0}
.comment-list .comment{border-bottom:1px dashed #e2e8f5;padding:12px 0;list-style:none}
.comment-form textarea,.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url]{width:100%;padding:8px;border:1px solid #d5dfef;border-radius:6px}
.comment-form .submit{background:#0B57D0;color:#fff;border:none;padding:9px 26px;font-size:14px;cursor:pointer;border-radius:6px}
.comment-form .submit:hover{background:#0842A0}

/* ---------- 页脚 ---------- */
.site-footer{background:#0a2c74;color:#dbe6ff;margin-top:10px}
.footer-inner{padding:30px 16px;text-align:center;font-size:13px;line-height:2}
.footer-brand{font-size:18px;font-weight:700;letter-spacing:3px;margin-bottom:4px;color:#fff}
.site-footer a{color:#9fd0ff;text-decoration:none}

/* ---------- 响应式 ---------- */
@media (max-width:900px){
  .top-right{display:none}
  .hero{height:340px}
  .hero-title{font-size:26px}
  .hero-cat{font-size:16px;letter-spacing:2px}
  .hero-caption{bottom:12%}
  .home-section{flex-direction:column}
  .home-side{flex:1 1 auto;width:100%}
  .nav-menu a{padding:0 13px;font-size:14px;line-height:42px}
  .single-wrap{padding:22px 18px}
  .single-title{font-size:22px}
}
