/*
Theme Name: 核实网主题
Theme URI: https://new.heshiw.com
Author: heshiw
Description: 核实网自研主题，零第三方主题依赖，内置查询商品、订单、用户中心样式。
Version: 1.0.0
Text Domain: heshiw
*/

:root{
  --hw-primary:#1e6fff;
  --hw-primary-dark:#1558d6;
  --hw-accent:#e8352e;
  --hw-text:#171a1f;
  --hw-muted:#6b7280;
  --hw-border:#e5e7eb;
  --hw-bg:#f6f7f9;
  --hw-card:#fff;
  --hw-radius:14px;
  --hw-shadow:0 1px 2px rgba(16,24,40,.04),0 8px 24px rgba(16,24,40,.06);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:var(--hw-text);background:var(--hw-bg);font-size:15px;line-height:1.75}
a{color:var(--hw-primary);text-decoration:none}
a:hover{color:var(--hw-primary-dark)}
img{max-width:100%;height:auto;border-radius:10px}
h1,h2,h3,h4{line-height:1.35;color:var(--hw-text)}

/* 顶部导航 */
.site-header{background:rgba(255,255,255,.92);backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid var(--hw-border);position:sticky;top:0;z-index:50}
.site-header .inner{max-width:1080px;margin:0 auto;padding:0 18px;height:64px;display:flex;align-items:center;gap:22px}
.site-logo{display:flex;align-items:center;gap:9px;font-weight:800;font-size:19px;color:var(--hw-text);letter-spacing:.5px}
.site-logo:hover{color:var(--hw-text)}
.site-logo .dot{width:9px;height:9px;border-radius:50%;background:var(--hw-accent);box-shadow:0 0 0 4px rgba(232,53,46,.12)}
.site-nav{display:flex;gap:6px;flex:1;overflow:hidden}
.site-nav ul{display:flex;gap:6px;list-style:none;margin:0;padding:0;flex-wrap:nowrap}
.site-nav li{margin:0;padding:0;list-style:none}
.site-nav a{padding:7px 12px;border-radius:9px;color:var(--hw-text);font-size:14px;font-weight:500;white-space:nowrap}
.site-nav a:hover{background:#f1f5f9;color:var(--hw-primary)}
.site-nav .current-menu-item>a{color:var(--hw-primary);background:#eef4ff}
.header-actions{display:flex;align-items:center;gap:10px}
.header-actions .hw-input{height:36px;width:170px;font-size:13px;border-radius:9px}
.btn-line{display:inline-flex;align-items:center;height:36px;padding:0 14px;border:1px solid var(--hw-border);border-radius:9px;font-size:13px;font-weight:600;color:var(--hw-text);background:#fff}
.btn-line:hover{border-color:#cbd5e1;background:#f8fafc}
.btn-solid{display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:9px;font-size:13px;font-weight:600;background:var(--hw-primary);color:#fff}
.btn-solid:hover{background:var(--hw-primary-dark);color:#fff}
.nav-toggle{display:none;border:1px solid var(--hw-border);background:#fff;border-radius:9px;width:38px;height:36px;font-size:18px;line-height:1;cursor:pointer}

/* 首页 */
.hero{background:linear-gradient(160deg,#0f2a5c 0%,#1e4fa3 55%,#2f7bdb 100%);color:#fff;padding:56px 0 64px;position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;right:-120px;top:-80px;width:420px;height:420px;background:radial-gradient(circle,rgba(255,255,255,.18),transparent 62%)}
.hero .inner{max-width:1080px;margin:0 auto;padding:0 18px;position:relative;z-index:1}
.hero h1{font-size:34px;margin:0 0 12px;color:#fff;letter-spacing:.5px}
.hero p{margin:0 0 26px;color:rgba(255,255,255,.82);font-size:15px}
.hero-search{display:flex;gap:10px;max-width:620px}
.hero-search input{flex:1;height:50px;border-radius:12px;border:0;padding:0 16px;font-size:15px;outline:none;box-shadow:0 10px 30px rgba(0,0,0,.16)}
.hero-search button{height:50px;padding:0 24px;border-radius:12px;border:0;background:var(--hw-accent);color:#fff;font-size:15px;font-weight:700;cursor:pointer;box-shadow:0 10px 30px rgba(232,53,46,.35)}
.hero-stats{display:flex;gap:36px;margin-top:30px;flex-wrap:wrap}
.hero-stats div{color:rgba(255,255,255,.75);font-size:13px}
.hero-stats b{display:block;color:#fff;font-size:24px;font-weight:800;line-height:1.2}

.section{max-width:1080px;margin:0 auto;padding:34px 18px}
.section-head{display:flex;align-items:baseline;gap:12px;margin-bottom:18px}
.section-head h2{font-size:20px;margin:0}
.section-head .more{margin-left:auto;font-size:13px;color:var(--hw-muted)}
.grid{display:grid;gap:16px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.card{background:var(--hw-card);border:1px solid var(--hw-border);border-radius:var(--hw-radius);box-shadow:var(--hw-shadow);padding:18px;transition:.18s}
.card:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(16,24,40,.1)}
.post-card .thumb{display:block;margin:-18px -18px 14px;border-radius:var(--hw-radius) var(--hw-radius) 0 0;overflow:hidden;aspect-ratio:16/9;background:#eef2f7}
.post-card .thumb img{width:100%;height:100%;object-fit:cover;border-radius:0}
.post-card h3{margin:0 0 8px;font-size:16px;line-height:1.45}
.post-card h3 a{color:var(--hw-text)}
.post-card h3 a:hover{color:var(--hw-primary)}
.post-card .excerpt{color:var(--hw-muted);font-size:13px;margin:0 0 10px}
.post-card .meta{display:flex;gap:12px;color:#9aa3af;font-size:12px}
.query-card{display:flex;flex-direction:column;gap:8px}
.query-card .tag{display:inline-block;background:#eef4ff;color:var(--hw-primary);font-size:12px;padding:3px 8px;border-radius:6px;font-weight:600;width:fit-content}
.query-card h3{margin:0;font-size:16px}
.query-card .price{color:var(--hw-accent);font-weight:800;font-size:18px;margin-top:auto}

/* 列表页 */
.list-wrap{max-width:1080px;margin:0 auto;padding:26px 18px 60px;display:grid;grid-template-columns:1fr 300px;gap:22px;align-items:start}
.list-main .post-card{margin-bottom:14px}
.list-main .post-card:hover{transform:none}
.sidebar .widget{background:#fff;border:1px solid var(--hw-border);border-radius:var(--hw-radius);box-shadow:var(--hw-shadow);padding:16px;margin-bottom:16px}
.sidebar .widget h3{margin:0 0 12px;font-size:15px}
.sidebar ul{list-style:none;margin:0;padding:0}
.sidebar li{padding:7px 0;border-bottom:1px dashed var(--hw-border);font-size:14px}
.sidebar li:last-child{border:0}
.sidebar li a{color:var(--hw-text)}
.sidebar li a:hover{color:var(--hw-primary)}

/* 文章页 */
.article-wrap{max-width:820px;margin:0 auto;padding:26px 18px 60px}
.breadcrumb{font-size:13px;color:var(--hw-muted);margin-bottom:12px}
.article-wrap h1.entry-title{font-size:28px;margin:0 0 12px}
.entry-meta{display:flex;gap:14px;color:var(--hw-muted);font-size:13px;margin-bottom:22px;flex-wrap:wrap}
.entry-content{background:#fff;border:1px solid var(--hw-border);border-radius:var(--hw-radius);box-shadow:var(--hw-shadow);padding:26px;font-size:15.5px}
.entry-content p{margin:0 0 1.1em}
.entry-content img{border-radius:10px;margin:10px 0}
.entry-content table{border-collapse:collapse;width:100%;font-size:14px}
.entry-content th,.entry-content td{border:1px solid var(--hw-border);padding:8px 10px;text-align:left}

/* 页脚 */
.site-footer{background:#0f172a;color:#94a3b8;margin-top:40px;padding:40px 0 26px;font-size:13px}
.site-footer .inner{max-width:1080px;margin:0 auto;padding:0 18px;display:grid;grid-template-columns:2fr 1fr 1fr;gap:26px}
.site-footer h4{color:#e2e8f0;font-size:15px;margin:0 0 10px}
.site-footer a{color:#94a3b8}
.site-footer a:hover{color:#fff}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{padding:4px 0}
.copyright{max-width:1080px;margin:24px auto 0;padding:16px 18px 0;border-top:1px solid rgba(255,255,255,.08);color:#64748b;font-size:12px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

@media (max-width:900px){
  .grid-3,.grid-4{grid-template-columns:repeat(2,1fr)}
  .list-wrap{grid-template-columns:1fr}
  .site-footer .inner{grid-template-columns:1fr 1fr}
  .site-nav{display:none}
  .site-nav.open{display:flex;position:absolute;left:0;right:0;top:64px;background:#fff;flex-direction:column;padding:10px 18px;border-bottom:1px solid var(--hw-border);box-shadow:0 12px 24px rgba(16,24,40,.08)}
  .nav-toggle{display:block}
  .header-actions .hw-input{display:none}
  .hero h1{font-size:26px}
}
@media (max-width:560px){
  .grid-3,.grid-4,.grid-2{grid-template-columns:1fr}
  .hero{padding:38px 0 44px}
  .hero-stats{gap:22px}
}
