/*
Theme Name: 华夏商讯 (zixun-portal)
Theme URI: https://www.geocite.top/
Author: 华夏商讯
Description: 轻量资讯门户主题：藏青墨色+金线的高端版式，白底、1200px居中，头条轮播+要闻+快讯+最新列表+边栏+行业网格+行业目录+区域商业。
Version: 1.12
License: GPLv2
Text Domain: zixun-portal
*/
/* 配色：主色藏青墨色 #12283d / 深 #0b1723，点缀金 #c9a86a / 深金 #9a7b3f，正文墨灰 */
*{margin:0;padding:0;box-sizing:border-box}
.screen-reader-text{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
body{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Source Han Sans SC",sans-serif;color:#232d38;background:#fff;font-size:15px;line-height:1.7;-webkit-font-smoothing:antialiased}
a{color:#232d38;text-decoration:none;transition:color .2s}
a:hover{color:#9a7b3f}
img{max-width:100%;height:auto;display:block}
.wrap{max-width:1200px;margin:0 auto;padding:0 20px}
/* 顶部 */
.topbar{border-bottom:1px solid #ececec;padding:26px 0 24px;background:#fff}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.logo{display:flex;align-items:center;gap:12px}
/* v1.6: Logo 改为 SVG 图片（金色菱形 + 华夏商讯字标），替换旧的纯文字 Logo */
.logo-img{height:56px;width:auto;flex:none}
.logo-sub{font-size:12px;color:#999;letter-spacing:3px}
.topnav{display:flex;align-items:center;gap:26px;font-size:15px;flex-wrap:wrap;row-gap:8px}
.topnav a{color:#333;font-weight:500;letter-spacing:1px;white-space:nowrap}
.topnav a:hover{color:#9a7b3f}
/* v1.5: 搜索提交是 <input type="submit"> 不是 <button>，旧规则 .search-form button 从未命中，
   而 .search-form input{width:170px} 把提交按钮也撑成 170px 宽——按类型分开写 */
.search-form{display:flex;align-items:stretch;flex:none}
.search-form label{display:flex}
.search-form input[type="search"]{border:1px solid #ddd;padding:7px 12px;width:170px;font-size:14px;outline:none;border-radius:4px 0 0 4px}
.search-form input[type="search"]:focus{border-color:#c9a86a}
.search-form input[type="submit"],.search-form button{background:#12283d;color:#fff;border:0;padding:7px 16px;cursor:pointer;font-size:14px;border-radius:0 4px 4px 0;letter-spacing:1px;width:auto;flex:none}
.search-form input[type="submit"]:hover,.search-form button:hover{background:#c9a86a;color:#12283d}
/* 频道栏 */
.channels{background:linear-gradient(90deg,#0b1723,#16324a 55%,#0b1723);color:#fff;border-bottom:2px solid #c9a86a;box-shadow:0 2px 12px rgba(0,0,0,.18);position:relative;z-index:40}
/* v1.5: 频道栏总宽曾超 1160px 内容区（旧合计约 1195px），flex-wrap 把日期挤到第二行。
   内边距 14px→10px 后合计约 1083px，桌面 1200px 下单行放得下；flex:none 防压缩变形 */
.channels .wrap{display:flex;align-items:center;gap:2px;flex-wrap:wrap}
.channels a{color:#e8ecf0;padding:12px 10px;font-size:15px;white-space:nowrap;letter-spacing:1px;flex:none}
.channels a:hover{background:rgba(255,255,255,.09);color:#c9a86a}
.channels .chan-label{font-size:11px;opacity:.7;padding:12px 4px;letter-spacing:2px;flex:none}
.channels .chan-date{margin-left:auto;font-size:13px;opacity:.85;padding:12px 0;letter-spacing:1px;flex:none;white-space:nowrap}
.dropdown{position:relative;flex:none}
.dropdown-menu{display:none;position:absolute;left:0;top:100%;background:#16324a;min-width:560px;z-index:50;padding:10px;flex-wrap:wrap;gap:2px;box-shadow:0 8px 20px rgba(0,0,0,.3)}
.dropdown:hover .dropdown-menu{display:flex}
.dropdown-menu a{padding:8px 12px}
/* 板块标题 */
.section{margin:30px 0}
.section-head{border-bottom:2px solid #ececec;margin-bottom:18px;padding-bottom:0;display:flex;align-items:baseline;gap:12px}
.section-head h1, .section-head h2{font-size:24px;font-weight:800;letter-spacing:2px;color:#12283d;border-bottom:3px solid #c9a86a;margin-bottom:-2px;padding-bottom:9px}
.section-head span{font-size:12px;color:#aaa;letter-spacing:3px}
.section-head .more{margin-left:auto;font-size:13px;color:#9a7b3f}
/* 头条 */
.hero{display:grid;grid-template-columns:2fr 1fr;gap:22px}
.hero-main{position:relative;background:#0f1e2e;min-height:340px;overflow:hidden;border-radius:12px;box-shadow:0 14px 34px rgba(15,30,46,.22)}
.hero-main img{width:100%;height:340px;object-fit:cover}
.hero-main .hero-ph{height:340px;background:linear-gradient(135deg,#12283d,#1b3a56);color:#fff;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:700;padding:20px;text-align:center}
.hero-cap{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(transparent,rgba(8,18,30,.82));color:#fff;padding:56px 20px 16px}
.hero-cap h3{font-size:23px;line-height:1.45;font-weight:800;letter-spacing:.5px}
.hero-cap h3 a{color:#fff}
.hero-cap .meta{font-size:12px;opacity:.85;margin-bottom:6px;letter-spacing:1px}
.hero-cap .meta:before{content:"";display:inline-block;width:22px;height:2px;background:#c9a86a;vertical-align:middle;margin-right:8px}
.topstories{border:1px solid #ececec;border-radius:12px;padding:18px 22px;box-shadow:0 2px 12px rgba(0,0,0,.04);background:#fff}
.topstories h3{font-size:18px;font-weight:800;color:#12283d;border-bottom:1px solid #eee;padding-bottom:11px;margin-bottom:10px;letter-spacing:1px}
.topstories ol{list-style:none}
.topstories li{display:flex;gap:12px;padding:12px 0;border-bottom:1px dashed #eee}
.topstories li:last-child{border-bottom:0}
.topstories .num{color:#b08d4f;font-weight:900;font-size:18px}
.topstories .t{font-size:15px;line-height:1.55}
.topstories .tm{font-size:12px;color:#999}
/* 快讯条 */
.ticker{background:#faf7ef;border:1px solid #e8dcc3;border-radius:10px;padding:11px 18px;display:flex;gap:14px;align-items:center;overflow:hidden}
.ticker b{color:#9a7b3f;white-space:nowrap;letter-spacing:1px}
.ticker .items{display:flex;gap:26px;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
.ticker .items::-webkit-scrollbar{display:none}
.ticker .items span{font-size:14px}
.ticker .items time{color:#9a7b3f;margin-right:6px}
/* 主列表+边栏 */
.main-grid{display:grid;grid-template-columns:2fr 1fr;gap:30px;align-items:start}
.news-item{display:flex;gap:20px;padding:22px 0;border-bottom:1px solid #eee}
.news-item .txt{flex:1;min-width:0}
.news-item .catline{font-size:13px;color:#9a7b3f;margin-bottom:7px;letter-spacing:1px;font-weight:600}
.news-item .catline time{color:#999;margin-left:8px;font-weight:400}
.news-item h3{font-size:20px;font-weight:700;line-height:1.5;margin-bottom:7px;letter-spacing:.5px}
.news-item p{font-size:14px;color:#767676;line-height:1.9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-thumb{width:220px;flex:none;overflow:hidden;border-radius:10px;box-shadow:0 6px 18px rgba(15,30,46,.12)}
.news-thumb img{width:220px;height:140px;object-fit:cover}
.sidebar .box{border:1px solid #ececec;border-radius:12px;padding:18px 20px;margin-bottom:22px;box-shadow:0 2px 12px rgba(0,0,0,.03);background:#fff}
.sidebar .box h3{font-size:17px;font-weight:800;color:#12283d;border-bottom:1px solid #eee;padding-bottom:11px;margin-bottom:10px;position:relative;padding-left:13px;letter-spacing:1px}
.sidebar .box h3:before{content:"";position:absolute;left:0;top:4px;bottom:12px;width:4px;background:#c9a86a;border-radius:2px}
.sidebar .box li{list-style:none;padding:8px 0;border-bottom:1px dashed #eee;font-size:14px}
.sidebar .box li:last-child{border-bottom:0}
.sidebar .box li span{float:right;color:#999;font-size:12px}
.sidebar .box li a{color:#9a7b3f}
/* 行业网格 */
.sector-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.sector-col{border:1px solid #ececec;border-radius:12px;padding:18px 20px;box-shadow:0 2px 10px rgba(0,0,0,.03);transition:transform .25s,box-shadow .25s;background:#fff}
.sector-col:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(15,30,46,.12)}
.sector-col h3{font-size:18px;font-weight:800;color:#12283d;margin-bottom:10px;letter-spacing:1px}
.sector-col h3 a{color:#12283d}
.sector-col h3 a:hover{color:#9a7b3f}
.sector-col .lead{font-size:14px;color:#555;margin-bottom:10px;line-height:1.7}
.sector-col ul{list-style:none}
.sector-col li{padding:6px 0;border-top:1px dashed #eee;font-size:14px}
/* 目录 */
.dir-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.dir-item{border:1px solid #ececec;border-radius:9px;padding:13px 15px;display:flex;justify-content:space-between;font-size:15px;transition:border-color .2s,box-shadow .2s;background:#fff}
.dir-item:hover{border-color:#c9a86a;box-shadow:0 6px 18px rgba(15,30,46,.10)}
.dir-item b{color:#9a7b3f;font-size:13px}
.dir-item span{color:#999;font-size:12px}
/* 专题 */
.topic-list{display:flex;flex-wrap:wrap;gap:12px}
.topic-list a{border:1px solid #e0d3b3;background:#faf7ef;border-radius:999px;padding:10px 20px;font-size:15px;transition:all .2s}
.topic-list a:hover{background:#12283d;color:#fff;border-color:#12283d}
.topic-list a:hover span{color:rgba(255,255,255,.75)}
.topic-list a span{color:#999;font-size:12px;margin-left:6px}
/* 区域 */
.region-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.region-card{border:1px solid #ececec;border-radius:12px;padding:18px 20px;box-shadow:0 2px 10px rgba(0,0,0,.03);transition:transform .25s,box-shadow .25s;background:#fff}
.region-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(15,30,46,.12)}
.region-card h3{font-size:18px;font-weight:800;color:#12283d;margin-bottom:10px;letter-spacing:1px}
.region-card h3 span{float:right;font-size:12px;color:#999;font-weight:400}
.region-card li{list-style:none;padding:6px 0;border-top:1px dashed #eee;font-size:14px}
.region-links{margin-top:16px;font-size:14px;color:#666}
.region-links a{margin:0 8px 6px 0;display:inline-block}
/* 文章页 */
.single{max-width:860px;margin:0 auto;padding:26px 16px}
.single h1{font-size:30px;font-weight:800;line-height:1.45;margin:12px 0;letter-spacing:.5px;color:#12283d}
.single .meta{color:#999;font-size:13px;margin-bottom:20px}
.single .content p{margin:0 0 16px;font-size:16px;line-height:1.95;color:#333}
.single .content img{margin:12px auto;border-radius:8px}
.source-box{background:#faf7ef;border:1px solid #e8dcc3;border-radius:10px;padding:14px 16px;margin:26px 0;font-size:14px;color:#555;word-break:break-all}
.source-box a{color:#9a7b3f}
.cat-tag{color:#9a7b3f;font-size:14px}
/* 页脚 */
.site-footer{background:linear-gradient(180deg,#0b1723,#0f1e2e);color:#dfe6ec;margin-top:44px;padding:38px 0 22px;border-top:2px solid #c9a86a}
.site-footer .wrap{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.site-footer a{color:#fff}
.site-footer .foot-note{font-size:13px;opacity:.75;margin-top:12px;line-height:1.8}
.pagination{margin:20px 0;text-align:center}
.pagination .page-numbers{padding:6px 12px;border:1px solid #ddd;margin:0 2px;display:inline-block;border-radius:6px}
.pagination .current{background:#12283d;color:#fff;border-color:#12283d}
.no-content{color:#999;padding:20px 0}
@media (max-width:1180px){
  /* 窄屏先藏装饰性的 CHANNELS 标签，腾出约 123px 给链接和日期 */
  .channels .chan-label{display:none}
}
@media (max-width:1100px){
  .channels a{padding:12px 9px;font-size:14px}
}
@media (max-width:900px){
  .hero,.main-grid{grid-template-columns:1fr}
  .sector-grid{grid-template-columns:1fr 1fr}
  .dir-grid{grid-template-columns:repeat(3,1fr)}
  .region-grid{grid-template-columns:1fr 1fr}
  .news-thumb,.news-thumb img{width:140px;height:100px}
  .logo-img{height:44px}
  .channels .chan-date{display:none}
  .dropdown-menu{min-width:300px}
}
@media (max-width:560px){
  .sector-grid,.region-grid{grid-template-columns:1fr}
  .dir-grid{grid-template-columns:repeat(2,1fr)}
  .news-item{flex-direction:column}
  .news-thumb,.news-thumb img{width:100%;height:180px}
  .hero-main img,.hero-main .hero-ph{height:240px}
  .search-form input[type="search"]{width:120px}
  .topbar{padding:18px 0}
  .logo-sub{display:none}
  .topnav{gap:14px}
}

/* v1.4: 无图头条 fallback：藏青渐变底 + 大号标题 + 分类日期，标题只出现一次 */
.hero-main .hero-ph-alt{flex-direction:column;justify-content:flex-end;align-items:flex-start;text-align:left;padding:56px 20px 16px;background:linear-gradient(135deg,#0b1723,#12283d 55%,#1b3a56)}
.hero-ph-alt .meta{font-size:12px;opacity:.85;margin-bottom:8px;letter-spacing:1px;color:#fff}
.hero-ph-alt .meta:before{content:"";display:inline-block;width:22px;height:2px;background:#c9a86a;vertical-align:middle;margin-right:8px}
.hero-ph-alt h3{font-size:26px;line-height:1.45;font-weight:800;letter-spacing:.5px}
.hero-ph-alt h3 a{color:#fff}
