/*
Theme Name: Jingwei Tech — 兢维科技
Theme URI: https://bcxsoft.com
Author: Jingwei Technology (Beijing) Co., Ltd.
Author URI: https://bcxsoft.com
Description: 兢维科技（北京）有限公司官网主题 —— 科技型三维工厂设计软件公司网站。扁平化设计风格：几何色块、内联SVG图标、无阴影扁平卡片、科技蓝配色。适用于软件产品展示型公司官网。
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jingwei-tech
Tags: business, portfolio, one-column, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. 设计变量（扁平化设计系统）
   ========================================================================== */
:root {
  /* 品牌色 */
  --c-navy: #0B1F3A;        /* 深海军蓝 - 主背景 */
  --c-navy-2: #12294A;      /* 深蓝 - 次级背景 */
  --c-blue: #2E7CF6;        /* 科技蓝 - 主强调 */
  --c-cyan: #00B8D9;        /* 青色 - 辅助强调 */
  --c-grad: linear-gradient(135deg, #2E7CF6 0%, #00B8D9 100%);
  --c-bg: #F5F8FC;          /* 页面浅背景 */
  --c-card: #FFFFFF;        /* 卡片白 */
  --c-text: #1F2937;        /* 主文字 */
  --c-text-2: #6B7280;      /* 次要文字 */
  --c-line: #E5EBF3;        /* 分隔线 */
  --c-success: #34C77B;
  --c-warn: #F5A623;

  /* 尺寸 */
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1200px;
  --space: 88px;            /* 板块间距 */

  /* 字体 */
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   2. 基础重置
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-card);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-cyan); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--c-navy); }

/* 容器 */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* 板块通用 */
.section { padding: var(--space) 0; }
.section-alt { background: var(--c-bg); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .kicker {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  background: rgba(46, 124, 246, .1);
  color: var(--c-blue);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: 36px; margin-bottom: 14px; }
.section-head p { color: var(--c-text-2); font-size: 17px; }

/* ==========================================================================
   3. 顶部导航（固定，扁平深色）
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 31, 58, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s;
}
.site-header .header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand .brand-logo {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--c-grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #fff;
}
.brand .brand-logo-img {
  width: 38px; height: 38px; border-radius: 9px; display: block;
}
.brand .brand-name { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.brand .brand-name span { color: var(--c-cyan); }
.main-nav { display: flex; gap: 30px; align-items: center; }
.main-nav a {
  color: rgba(255,255,255,.82); font-size: 15px; font-weight: 500;
  position: relative; padding: 6px 0;
}
.main-nav a:hover, .main-nav a.current-menu-item { color: #fff; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--c-grad);
  transition: width .25s; border-radius: 2px;
}
.main-nav a:hover::after, .main-nav a.current-menu-item::after { width: 100%; }
.nav-cta {
  background: var(--c-grad); color: #fff !important;
  padding: 10px 22px !important; border-radius: 6px; font-weight: 600;
}
.nav-cta::after { display: none !important; }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; position: relative;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: #fff;
  margin: 5px auto; border-radius: 2px; transition: all .3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   4. Hero（首屏，深蓝渐变 + 扁平几何装饰）
   ========================================================================== */
.hero {
  background: var(--c-navy);
  background-image:
    radial-gradient(circle at 80% 20%, rgba(0,184,217,.18) 0, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(46,124,246,.2) 0, transparent 50%),
    linear-gradient(160deg, #0B1F3A 0%, #12294A 60%, #0B2A52 100%);
  color: #fff;
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}
/* 扁平几何装饰（圆形/三角） */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.08);
}
.hero::before { width: 420px; height: 420px; right: -120px; top: -120px; }
.hero::after { width: 260px; height: 260px; left: -80px; bottom: -100px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 2;
}
.hero h1 { color: #fff; font-size: 46px; line-height: 1.25; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: transparent; background: var(--c-grad); -webkit-background-clip: text; background-clip: text; }
.hero p { color: rgba(255,255,255,.75); font-size: 18px; margin-bottom: 36px; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  border: none; transition: all .25s;
}
.btn-primary { background: var(--c-grad); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46,124,246,.35); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Hero 右侧：产品示意图（扁平色块卡片） */
.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 28px; backdrop-filter: blur(6px);
}
.hero-card .hc-title { font-size: 15px; color: rgba(255,255,255,.6); margin-bottom: 18px; letter-spacing: 1px; }
.hero-card .hc-list { display: flex; flex-direction: column; gap: 14px; }
.hc-item { display: flex; align-items: center; gap: 14px; }
.hc-item .hc-ico {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.hc-item .hc-name { color: #fff; font-size: 15px; font-weight: 600; }
.hc-item .hc-sub { color: rgba(255,255,255,.5); font-size: 13px; }
.hc-ico.blue { background: rgba(46,124,246,.2); color: #5B9BFF; }
.hc-ico.cyan { background: rgba(0,184,217,.2); color: #2FD8F2; }
.hc-ico.green { background: rgba(52,199,123,.2); color: #4FDC92; }
.hc-ico.orange { background: rgba(245,166,35,.2); color: #FFC14D; }

/* ==========================================================================
   5. 数据指标条（扁平色块）
   ========================================================================== */
.stats-bar { background: #fff; border-bottom: 1px solid var(--c-line); padding: 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--c-line);
}
.stat-item { padding: 36px 24px; text-align: center; border-right: 1px solid var(--c-line); }
.stat-item .stat-num {
  font-size: 40px; font-weight: 800; color: var(--c-navy);
  font-family: "Arial", sans-serif;
}
.stat-item .stat-num sup { font-size: 22px; color: var(--c-blue); }
.stat-item .stat-label { color: var(--c-text-2); font-size: 14px; margin-top: 4px; }

/* ==========================================================================
   6. 产品卡片（扁平网格）
   ========================================================================== */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all .3s;
  position: relative; overflow: hidden;
}
.product-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--c-grad); transform: scaleX(0); transform-origin: left;
  transition: transform .35s;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(46,124,246,.3); box-shadow: 0 12px 32px rgba(11,31,58,.08); }
.product-card:hover::before { transform: scaleX(1); }
.product-card .pc-ico {
  width: 64px; height: 64px; border-radius: 14px;
  background: rgba(46,124,246,.1); color: var(--c-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.product-card h3 { font-size: 21px; margin-bottom: 12px; }
.product-card p { color: var(--c-text-2); font-size: 15px; margin-bottom: 18px; }
.product-card .pc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-tag {
  font-size: 12px; padding: 4px 12px; border-radius: 16px;
  background: var(--c-bg); color: var(--c-blue); font-weight: 500;
}
.product-card .pc-link { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.product-card .pc-link svg { transition: transform .2s; }
.product-card .pc-link:hover svg { transform: translateX(4px); }

/* ==========================================================================
   7. 技术优势（图标列表）
   ========================================================================== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-item {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 30px;
  transition: all .3s;
}
.feature-item:hover { border-color: rgba(0,184,217,.35); }
.feature-item .fi-ico {
  width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: #fff;
}
.feature-item h3 { font-size: 18px; margin-bottom: 10px; }
.feature-item p { color: var(--c-text-2); font-size: 14.5px; }

/* ==========================================================================
   8. 行业应用（色块图标）
   ========================================================================== */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.industry-item {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
  transition: all .3s;
}
.industry-item:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(11,31,58,.08); }
.industry-item .ii-ico {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.industry-item h3 { font-size: 17px; margin-bottom: 8px; }
.industry-item p { color: var(--c-text-2); font-size: 13.5px; }

/* ==========================================================================
   9. 客户案例
   ========================================================================== */
.clients-wrap { background: #fff; }
.client-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.client-item {
  border: 1px solid var(--c-line); border-radius: 8px;
  padding: 18px 14px; text-align: center;
  font-size: 14.5px; color: var(--c-text); font-weight: 500;
  transition: all .25s; background: var(--c-bg);
}
.client-item:hover { border-color: var(--c-blue); color: var(--c-blue); background: #fff; }
.client-more { text-align: center; margin-top: 28px; color: var(--c-text-2); font-size: 14px; }

/* ==========================================================================
   10. 服务支持（三列）
   ========================================================================== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-item {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 34px 30px; text-align: center;
}
.service-item .si-ico {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.service-item h3 { font-size: 18px; margin-bottom: 10px; }
.service-item p { color: var(--c-text-2); font-size: 14.5px; }

/* ==========================================================================
   11. CTA（底部行动号召）
   ========================================================================== */
.cta-band {
  background: var(--c-grad); padding: 60px 0; color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; font-size: 32px; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 17px; margin-bottom: 28px; }
.cta-band .btn { background: #fff; color: var(--c-blue); }
.cta-band .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* ==========================================================================
   12. 页脚
   ========================================================================== */
.site-footer { background: var(--c-navy); color: rgba(255,255,255,.65); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-grid p { font-size: 14px; line-height: 1.8; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: 14px; }
.footer-links a:hover { color: var(--c-cyan); }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; margin-bottom: 12px; }
.footer-contact svg { flex-shrink: 0; margin-top: 3px; color: var(--c-cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0; text-align: center; font-size: 13px;
}

/* ==========================================================================
   13. 页面通用（page/single/archive）
   ========================================================================== */
.page-hero {
  background: var(--c-navy);
  background-image: radial-gradient(circle at 80% 20%, rgba(0,184,217,.15) 0, transparent 45%);
  padding: 150px 0 70px; color: #fff; text-align: center;
}
.page-hero h1 { color: #fff; font-size: 38px; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 16px; }
.page-content { padding: 64px 0; }
.entry-content { max-width: 860px; margin: 0 auto; }
.entry-content h2 { font-size: 26px; margin: 32px 0 14px; }
.entry-content h3 { font-size: 20px; margin: 24px 0 10px; }
.entry-content p { margin-bottom: 16px; color: #374151; }
.entry-content ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.entry-content li { margin-bottom: 6px; }

/* 面包屑 */
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 8px; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }

/* ==========================================================================
   14. 移动端响应式
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 150px 0 80px; }
  .products-grid, .features-grid, .service-grid { grid-template-columns: 1fr 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .client-list { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--c-navy-2); flex-direction: column;
    padding: 24px; gap: 18px; align-items: flex-start;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 640px) {
  :root { --space: 60px; }
  .hero h1 { font-size: 34px; }
  .products-grid, .features-grid, .service-grid, .industry-grid { grid-template-columns: 1fr; }
  .client-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 28px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   15. 无障碍与工具类
   ========================================================================== */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px 14px; z-index: 999; border-radius: 4px; }
.aligncenter { text-align: center; }
.wp-caption, .gallery-caption, .bypostauthor { font-size: 13px; color: var(--c-text-2); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ==========================================================================
   16. 产品详情页（二次点击页面）
   ========================================================================== */
/* 产品卡片详情链接 */
.product-card .pc-link { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }

/* 软件截图画廊 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(11,31,58,.1); }
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}
.gallery-item figcaption {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  text-align: center;
}

/* 技术参数表 */
.spec-table { width: 100%; border-collapse: collapse; background: var(--c-card); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td {
  padding: 16px 20px;
  border: 1px solid var(--c-line);
  text-align: left;
  font-size: 15px;
}
.spec-table th { background: var(--c-bg); color: var(--c-navy); font-weight: 600; width: 180px; }
.spec-table td { color: #374151; }

@media (max-width: 992px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   17. 客户咨询表单（CTA 区域）
   ========================================================================== */
.contact-form {
  max-width: 720px;
  margin: 36px auto 0;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  padding: 28px 30px;
  text-align: left;
  backdrop-filter: blur(6px);
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.cf-field { display: flex; flex-direction: column; }
.cf-field label {
  color: rgba(255,255,255,.85);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 6px;
}
.cf-field input, .cf-field select {
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, background .2s;
}
.cf-field input::placeholder { color: rgba(255,255,255,.5); }
.cf-field input:focus, .cf-field select:focus {
  border-color: #fff;
  background: rgba(255,255,255,.18);
}
.cf-field select option { color: #1F2937; background: #fff; }
.cf-submit { text-align: center; margin-top: 22px; }
.cf-submit .btn { background: #fff; color: var(--c-blue); padding: 13px 44px; }
.cf-submit .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.cf-submit .btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.cf-result {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: #fff;
}
@media (max-width: 640px) {
  .cf-row { grid-template-columns: 1fr; }
}
