/*
Theme Name: FOXJACK 企业官网
Theme URI: https://www.foxjack.cn
Author: FOXJACK
Description: 杰克狐企业官网区块主题 · 方案F「明快国际」：白底明快 + 斜切蓝色块产品英雄 + 橙色高亮 + 动效统计条。
Version: 1.2.2
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: foxjack
*/

:root {
  --vi: #0F4C81;
  --vi2: #135F9E;
  --vi3: #2E7CBF;
  --acc: #FF8A1E;
  --ink: #1F2C42;
  --ink-soft: #5C6E88;
  --line: #E7EDF5;
  --bg-gray: #F6F9FC;
  --footer-bg: #122238;
  --maxw: 1200px;
}

body { margin: 0; color: var(--ink); background: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 18px rgba(15, 44, 74, .08); }
body.admin-bar .topbar { top: 32px; }
.topbar .wrap { display: flex; align-items: center; gap: 40px; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo .mark { height: 42px; width: auto; display: block; }
.logo .word { height: 20px; width: auto; display: block; }
.nav { display: flex; margin-left: auto; }
.nav a { padding: 27px 20px; font-size: 15.5px; color: var(--ink); border-bottom: 3px solid transparent; transition: .25s; }
.nav a:hover, .nav a.on { color: var(--vi); border-bottom-color: var(--acc); }
.nav-toggle { display: none; }
.nav-btn { display: none; }

/* ---------- 首页 Hero（方案F 产品英雄） ---------- */
.hero-f { position: relative; overflow: hidden; background: var(--bg-gray); }
.hero-f::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 52%;
  background: linear-gradient(135deg, #0B3A63, #135F9E 60%, #2E7CBF); clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
.hero-f::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 52%;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2256%22%20height%3D%2256%22%3E%3Cpath%20d%3D%22M56%200H0V56%22%20fill%3D%22none%22%20stroke%3D%22rgba%28255%2C255%2C255%2C0.1%29%22%20stroke-width%3D%221%22%2F%3E%3C%2Fsvg%3E"); clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
.hgrid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; min-height: 560px; }
.kicker { display: inline-block; background: rgba(255, 138, 30, .12); color: #D96D00; border-radius: 4px; padding: 7px 16px;
  font-size: 13.5px; letter-spacing: 2px; margin-bottom: 24px; font-weight: bold; }
.hero-f h1 { font-size: clamp(36px, 2.2vw + 22px, 52px); line-height: 1.25; font-weight: 800; color: var(--vi); letter-spacing: 1px; margin: 0; }
.hero-f h1 em { font-style: normal; position: relative; z-index: 1; }
.hero-f h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 12px;
  background: rgba(255, 138, 30, .3); z-index: -1; border-radius: 3px; }
.hero-f .sub { margin: 22px 0 0; font-size: 17px; line-height: 1.95; color: var(--ink-soft); max-width: 500px; }
.hbtns { margin-top: 36px; display: flex; gap: 16px; }
.hbtns a { padding: 13px 34px; border-radius: 4px; font-size: 16px; transition: .4s cubic-bezier(.25,.46,.45,.94); }
.hbtns .p { background: var(--vi); color: #fff; }
.hbtns .p:hover { background: var(--acc); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 138, 30, .35); }
.hbtns .s { border: 1.5px solid var(--vi); color: var(--vi); }
.hbtns .s:hover { background: var(--vi); color: #fff; }
.pshot { text-align: center; }
.pshot img { width: 108%; max-width: 620px; animation: float 5.5s ease-in-out infinite; filter: drop-shadow(0 34px 40px rgba(4, 20, 38, .5)); }
@keyframes float { 50% { transform: translateY(-14px); } }

/* ---------- 统计条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 12px;
  margin-top: -52px; position: relative; z-index: 5; background: #fff; box-shadow: 0 22px 50px rgba(9, 46, 79, .12); padding: 32px 10px; }
.stat { text-align: center; border-right: 1px solid #EDF2F8; }
.stat:last-child { border: 0; }
.stat b { display: block; font-size: 40px; color: var(--vi); font-weight: 800; transition: text-shadow .3s cubic-bezier(.25,.46,.45,.94); }
.stat:hover b { text-shadow: 0 0 15px rgba(46, 124, 191, .6); }
.stat b i { font-style: normal; font-size: 20px; color: var(--acc); }
.stat span { color: #7285a0; font-size: 14.5px; }

/* ---------- 双语栏目标题（方案F） ---------- */
.sec-head { text-align: center; padding: 84px 0 46px; }
.sec-head h2 { font-size: 32px; letter-spacing: 2px; color: var(--ink); position: relative; display: inline-block; margin: 0; }
.sec-head h2::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -12px; width: 56px; height: 4px;
  border-radius: 2px; background: linear-gradient(90deg, var(--acc), var(--vi3)); }
.sec-head p { margin: 24px 0 0; color: #9aa9c0; letter-spacing: 4px; font-size: 13px; text-transform: uppercase; }

/* ---------- 入口卡片（方案F） ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 84px; }
.cardx { background: #fff; border-radius: 14px; padding: 0 0 24px; overflow: hidden; box-shadow: 0 6px 22px rgba(15, 44, 74, .08);
  transition: .35s; display: block; }
.cardx:hover { transform: translateY(-10px); box-shadow: 0 26px 52px rgba(15, 44, 74, .18); }
.ci { height: 130px; background-size: 64px; transition: background-size .35s cubic-bezier(.25,.46,.45,.94); background-position: center; background-repeat: no-repeat; margin-bottom: 20px; position: relative; }
.ci::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2240%22%20height%3D%2240%22%3E%3Cpath%20d%3D%22M40%200H0V40%22%20fill%3D%22none%22%20stroke%3D%22rgba%28255%2C255%2C255%2C0.12%29%22%20stroke-width%3D%221%22%2F%3E%3C%2Fsvg%3E"); }
.ci-1 { background-color: #0F4C81; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%220.9%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M30%2090V44l30-18%2030%2018v46%22%2F%3E%3Cpath%20d%3D%22M30%2090h60M42%2090V62h12v28M66%2066h12M66%2078h12%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.ci-2 { background-color: #135F9E; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%220.9%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%2224%22%20y%3D%2240%22%20width%3D%2272%22%20height%3D%2234%22%20rx%3D%225%22%2F%3E%3Cpath%20d%3D%22M32%2048h20M32%2056h14M78%2048h8M78%2058h8M36%2074v10M84%2074v10M28%2084h64%22%2F%3E%3Cpath%20d%3D%22M40%2040v-8M52%2040v-8M64%2040v-8M76%2040v-8%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.ci-3 { background-color: #2E7CBF; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%220.9%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%2226%22%20y%3D%2230%22%20width%3D%2256%22%20height%3D%2264%22%20rx%3D%225%22%2F%3E%3Cpath%20d%3D%22M36%2044h36M36%2056h36M36%2068h24%22%2F%3E%3Cpath%20d%3D%22M82%2042h10a4%204%200%200%201%204%204v40a8%208%200%200%201-8%208H34%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.ci-4 { background-color: #FF8A1E; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22120%22%20height%3D%22120%22%20viewBox%3D%220%200%20120%20120%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%220.9%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%2246%22%20r%3D%2214%22%2F%3E%3Cpath%20d%3D%22M34%2092c2-16%2012-24%2026-24s24%208%2026%2024%22%2F%3E%3Cpath%20d%3D%22M88%2034l8-8M92%2046h12M84%2024v-12%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.cardx h4 { font-size: 19px; margin: 0 24px 10px; color: var(--ink); }
.cardx p { color: #7285a0; font-size: 14.5px; line-height: 1.8; margin: 0 24px 14px; min-height: 52px; }
.cardx .go { margin: 0 24px; color: var(--vi2); font-size: 14px; transition: color .3s; }
.cardx:hover .ci { background-size: 74px; }
.cardx:hover .go { color: var(--acc); }

/* ---------- 关于区块（方案F） ---------- */
.about-band { background: linear-gradient(180deg, var(--bg-gray), #EDF3FA); position: relative; overflow: hidden; }
.about-band::before { content: ""; position: absolute; left: -120px; bottom: -160px; width: 380px; height: 380px; border-radius: 50%;
  border: 48px solid rgba(255, 138, 30, .08); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-bottom: 90px; position: relative; z-index: 2; }
.about-grid .visual { border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #0B3A63, #2E7CBF);
  padding: 34px 10px; box-shadow: 0 26px 52px rgba(9, 46, 79, .25); }
.about-grid .visual img { width: 100%; animation: float 6s ease-in-out infinite; }
.about-grid h3 { font-size: 26px; color: var(--vi); margin: 0 0 18px; }
.about-grid p { color: var(--ink-soft); line-height: 2; margin: 0 0 14px; }
.btn { display: inline-block; margin-top: 10px; padding: 12px 36px; background: var(--vi); color: #fff; border-radius: 4px; transition: .25s; }
.btn:hover { background: var(--acc); transform: translateY(-2px); }

/* ---------- 新闻列表（wp:query） ---------- */
ul.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 0 0 84px; margin: 0; list-style: none; }
ul.news-list > li { border: 1px solid var(--line); border-radius: 12px; padding: 26px 24px; transition: all .3s; background: #fff; }
ul.news-list > li:hover { box-shadow: 0 18px 40px rgba(15, 44, 74, .14); transform: translateY(-6px); }
ul.news-list .wp-block-post-date { color: #9aa7bd; font-size: 13.5px; letter-spacing: 1px; }
ul.news-list .wp-block-post-title { font-size: 17px; margin: 10px 0; line-height: 1.5; }
ul.news-list .wp-block-post-title a { color: var(--ink); }
ul.news-list > li:hover .wp-block-post-title a { color: var(--vi2); }
ul.news-list .wp-block-post-excerpt { color: var(--ink-soft); font-size: 14px; }
ul.news-list .wp-block-post-excerpt__more-link { display: none; }

/* ---------- 内页 ---------- */
.page-banner { min-height: 260px; display: flex; flex-direction: column; justify-content: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 60% 100% at 80% 30%, rgba(110,180,235,.3), transparent 60%), linear-gradient(115deg, #092E4F, #135F9E 60%, #3579B5); }
/* 各栏目专属 banner（Unsplash License 免费商用图，已统一 VI 蓝双色调处理） */
body.page-about .page-banner { background: linear-gradient(90deg, rgba(6,26,46,.88), rgba(9,46,79,.42) 55%, rgba(9,46,79,.12)), url('assets/banner-about.jpg') center 30% / cover no-repeat; }
body.page-products .page-banner { background: linear-gradient(90deg, rgba(6,26,46,.88), rgba(9,46,79,.42) 55%, rgba(9,46,79,.12)), url('assets/banner-products.jpg') center / cover no-repeat; }
body.page-news .page-banner, body.single .page-banner { background: linear-gradient(90deg, rgba(6,26,46,.88), rgba(9,46,79,.42) 55%, rgba(9,46,79,.12)), url('assets/banner-news.jpg') center / cover no-repeat; }
body.page-contact .page-banner { background: linear-gradient(90deg, rgba(6,26,46,.88), rgba(9,46,79,.42) 55%, rgba(9,46,79,.12)), url('assets/banner-contact.jpg') center 65% / cover no-repeat; }
.page-banner::before { content: ""; position: absolute; inset: 0; opacity: .15;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 64px 64px; }
.page-banner .wp-block-post-title { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  font-size: 34px; letter-spacing: 3px; box-sizing: border-box; text-shadow: 0 2px 18px rgba(4, 18, 32, .55); }
.page-banner .wp-block-post-title::after { content: ""; display: block; width: 52px; height: 4px; border-radius: 2px; margin-top: 14px;
  background: linear-gradient(90deg, var(--acc), var(--vi3)); }
.content-pad { padding: 56px 0 88px; }
.content-pad .wp-block-post-content { color: var(--ink-soft); font-size: 16px; }
.content-pad .wp-block-post-content h3 { color: var(--vi); font-size: 22px; margin: 34px 0 14px; }
.content-pad .wp-block-post-content h2 { color: var(--vi); font-size: 24px; margin: 34px 0 14px; }
.single-meta { color: #9aa7bd; font-size: 14px; margin-bottom: 20px; }
.placeholder-note { background: #fff7ec; border: 1px dashed var(--acc); color: #a05a00;
  padding: 10px 16px; font-size: 13.5px; border-radius: 4px; margin: 18px 0; }

/* 时间线 */
.timeline { margin: 28px 0 0 8px; padding: 0; border-left: 2px solid #E6EFF7; }
.timeline li { list-style: none; padding: 0 0 26px 26px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid var(--vi3); }
.timeline .year { font-weight: 700; color: var(--vi); font-size: 17px; margin-right: 10px; }

/* 产品网格 */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prod-card { border: 1px solid var(--line); border-radius: 10px; padding: 30px 26px; position: relative; overflow: hidden; transition: all .3s; background: #fff; }
.prod-card::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; background: var(--acc); transition: width .3s; }
.prod-card:hover::before { width: 100%; }
.prod-card:hover { box-shadow: 0 14px 30px rgba(15, 76, 129, .12); transform: translateY(-4px); }
.prod-card h4 { font-size: 19px; color: var(--ink); margin: 0 0 10px; }
.prod-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-grid .info { margin: 0; padding: 0; }
.contact-grid .info li { list-style: none; padding: 14px 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); }
.contact-grid .info b { color: var(--ink); margin-right: 12px; }
.map-box { min-height: 380px; border: 1px solid var(--line); border-radius: 10px;
  background: url('assets/map-location.png') center / cover no-repeat;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 24px; color: transparent; font-size: 0; }
.map-box .btn { background: rgba(255, 255, 255, .95); font-size: 15px; color: var(--vi);
  border: 1px solid var(--vi); box-shadow: 0 4px 14px rgba(9, 46, 79, .25); }
.map-box .btn:hover { background: var(--vi); color: #fff; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--footer-bg); color: #9fb0cc; }
.foot-main { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding: 52px 0 40px; font-size: 14.5px; }
.foot-main h5 { color: #fff; font-size: 16px; margin: 0 0 16px; letter-spacing: 2px; }
.foot-main ul { margin: 0; padding: 0; }
.foot-main li { list-style: none; padding: 4px 0; }
.foot-main a:hover { color: #fff; }
.foot-logo { margin-bottom: 14px; }
.foot-logo img { height: 22px; width: auto; display: block; }
.foot-bar { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: 13px; text-align: center; color: #7285a6; }
.foot-bar a { color: #7285a6; margin: 0 8px; }
.foot-bar a:hover { color: #fff; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .topbar .wrap { height: 60px; gap: 16px; }
  .logo .mark { height: 32px; }
  .logo .word { height: 16px; }
  .nav-btn { display: block; margin-left: auto; cursor: pointer; width: 40px; height: 40px; position: relative; }
  .nav-btn span, .nav-btn span::before, .nav-btn span::after {
    content: ""; position: absolute; left: 8px; width: 24px; height: 2px; background: var(--vi); transition: all .25s; }
  .nav-btn span { top: 19px; }
  .nav-btn span::before { top: -8px; left: 0; }
  .nav-btn span::after { top: 8px; left: 0; }
  .nav { position: fixed; inset: 60px 0 auto 0; background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line); display: none; padding: 8px 0; margin: 0; box-shadow: 0 16px 30px rgba(15,44,74,.12); }
  .nav a { padding: 14px 28px; border-bottom: 0; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .hero-f::before, .hero-f::after { width: 100%; clip-path: none; opacity: .96; }
  .hero-f { color: #fff; }
  .hero-f h1, .hero-f .sub { color: #fff; }
  .hbtns .s { border-color: #fff; color: #fff; }
  .hgrid { grid-template-columns: 1fr; gap: 8px; padding: 48px 0; min-height: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 14px 0; margin-top: 20px; }
  .stat:nth-child(2) { border: 0; }
  .cards, .prod-grid, ul.news-list { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .foot-main { grid-template-columns: 1fr; gap: 28px; }
  body.admin-bar .topbar { top: 46px; }
}
