/*
Theme Name: jyt2610
Theme URI: https://www.ei1024.com/
Author: 江园科技
Author URI: https://www.ei1024.com/
Description: 江园科技官网主题样式（深空科技风，2026 改版）。
Version: 2.1
*/

/* ============ 1. 设计变量 ============ */
:root {
  --jyt-bg-0: #050b16;
  --jyt-bg-1: #0a1628;
  --jyt-bg-2: #0e1d33;
  --jyt-bg-3: #14273f;
  --jyt-line: rgba(46, 155, 255, .16);
  --jyt-line-soft: rgba(46, 155, 255, .08);
  --jyt-blue: #2e9bff;
  --jyt-cyan: #22d3ee;
  --jyt-brand: #1a84e0;
  --jyt-text-1: #eaf2fb;
  --jyt-text-2: #a9bdd6;
  --jyt-text-3: #647d9c;
  --jyt-grad: linear-gradient(135deg, #2e9bff 0%, #22d3ee 100%);
  --jyt-grad-soft: linear-gradient(135deg, rgba(46,155,255,.16), rgba(34,211,238,.16));
  --jyt-radius: 14px;
  --jyt-radius-sm: 8px;
  --jyt-shadow: 0 18px 50px rgba(2, 8, 20, .55);
  --jyt-font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "黑体", Arial, sans-serif;
}

/* ============ 2. 基础 ============ */
html, body {
  font-family: var(--jyt-font);
  background: var(--jyt-bg-1);
  color: var(--jyt-text-1);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--jyt-blue); text-decoration: none; }
a:hover { color: var(--jyt-cyan); }
::selection { background: rgba(46,155,255,.35); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--jyt-bg-0); }
::-webkit-scrollbar-thumb { background: #1d3f68; border-radius: 6px; }
img { max-width: 100%; }
.text-muted { color: var(--jyt-text-3) !important; }

/* ============ 3. 导航栏（深空玻璃） ============ */
.jyt-navbar {
  background: rgba(8, 18, 34, .82) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--jyt-line-soft);
}
.jyt-navbar .navbar-brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--jyt-text-1) !important;
  letter-spacing: 2px;
}
.jyt-navbar .navbar-brand img { width: 34px; height: 34px; margin-bottom: 3px; }
.jyt-navbar .nav-link {
  color: var(--jyt-text-2) !important;
  font-size: 1rem;
  padding: .6rem .9rem !important;
  position: relative;
  transition: color .25s;
}
.jyt-navbar .nav-link:hover,
.jyt-navbar .nav-link:focus,
.jyt-navbar .nav-link:focus-visible,
.jyt-navbar .nav-link.show,
.jyt-navbar .dropdown-toggle.show {
  color: #fff !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
.jyt-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .3rem;
  height: 2px;
  background: var(--jyt-grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.jyt-navbar .nav-link:hover::after { transform: scaleX(1); }
.jyt-navbar .navbar-toggler { border-color: var(--jyt-line); }
.jyt-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(234,242,251,.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.jyt-navbar .navbar-text { color: var(--jyt-text-2); font-size: .9rem; }
.jyt-navbar .dropdown-menu {
  background: rgba(12, 26, 46, .97);
  border: 1px solid var(--jyt-line);
  border-radius: var(--jyt-radius-sm);
  box-shadow: var(--jyt-shadow);
}
.jyt-navbar .dropdown-item { color: var(--jyt-text-2); padding: .55rem 1.1rem; }
.jyt-navbar .dropdown-item:hover,
.jyt-navbar .dropdown-item:focus,
.jyt-navbar .dropdown-item:focus-visible {
  background: rgba(46,155,255,.14);
  color: #fff;
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
/* mega menu 全宽下拉 */
.jyt-navbar .dropdown-fullwidth { position: static; }
.jyt-navbar .dropdown-fullwidth .dropdown-menu { left: 0; right: 0; border-radius: 0 0 var(--jyt-radius) var(--jyt-radius); }
/* PC 端鼠标悬浮自动展开下拉（产品服务 / 落地方案 / 资讯中心） */
@media (min-width: 992px) {
  .jyt-navbar .dropdown > .dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    pointer-events: none;
  }
  .jyt-navbar .dropdown:hover > .dropdown-menu,
  .jyt-navbar .dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
}
.nav-card-menu { list-style: none; padding-left: 0; margin: 0 0 .5rem; }
.nav-card-menu .dropdown-item { padding: .4rem .2rem; border-radius: 6px; }
.t2Color { color: var(--jyt-cyan); letter-spacing: 3px; font-weight: 600; }

/* ============ 4. Hero（深空网格 + 光晕） ============ */
.jyt-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 15% 10%, rgba(46,155,255,.16), transparent 60%),
    radial-gradient(760px 420px at 88% 88%, rgba(34,211,238,.12), transparent 60%),
    var(--jyt-bg-0);
}
.jyt-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(46,155,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,155,255,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(75% 90% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(75% 90% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}
.jyt-hero .carousel-item img { object-fit: cover; height: clamp(440px, 58vw, 660px); width: 100%; }
/* 产品/内容页 Hero 图：原来 15+ 处内联 style 高度，现收敛为类，便于统一改和 CSP */
.jyt-hero-img { height: clamp(300px, 42vw, 480px); object-fit: cover; }
.jyt-hero-img-sm { height: clamp(240px, 36vw, 400px); }
.jyt-hero-caption {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(5,11,22,.82) 0%, rgba(5,11,22,.45) 45%, transparent 75%);
}
.jyt-hero-caption h2 {
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .jyt-hero-caption h2 {
    background: linear-gradient(180deg, #fff, #9fd0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.jyt-hero-caption p { color: var(--jyt-text-2); font-size: clamp(.95rem, 1.6vw, 1.2rem); }

/* ============ 5. 区块与标题 ============ */
.jyt-section { padding: 4.5rem 0; position: relative; }
.jyt-section-alt { background: var(--jyt-bg-0); }
.jyt-sec-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: .8rem;
  color: var(--jyt-text-1);
}
.jyt-sec-title .accent {
  color: var(--jyt-cyan);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .jyt-sec-title .accent {
    background: var(--jyt-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.jyt-sec-sub {
  text-align: center;
  color: var(--jyt-text-2);
  letter-spacing: 1px;
  margin-bottom: 2.8rem;
}
.jyt-sec-bar {
  width: 64px; height: 4px; margin: 0 auto 2.5rem;
  background: var(--jyt-grad); border-radius: 4px;
}
.jyt-sec-title-sm { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
/* 白底示意图：文档式嵌入 */
.jyt-doc {
  background: #fff;
  border-radius: var(--jyt-radius);
  padding: clamp(12px, 3vw, 32px);
  border: 1px solid var(--jyt-line);
  box-shadow: var(--jyt-shadow);
  display: inline-block;
  max-width: 100%;
}
.jyt-doc img { max-width: 100%; height: auto; }

/* ============ 6. 玻璃卡片 ============ */
.jyt-card {
  background: linear-gradient(160deg, rgba(20,38,63,.72), rgba(10,22,40,.72));
  border: 1px solid var(--jyt-line);
  border-radius: var(--jyt-radius);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--jyt-shadow);
  transition: transform .35s, border-color .35s, box-shadow .35s;
  height: 100%;
}
.jyt-card:hover {
  transform: translateY(-8px);
  border-color: rgba(46,155,255,.45);
  box-shadow: 0 24px 60px rgba(2,8,20,.65), 0 0 0 1px rgba(46,155,255,.25);
}
.jyt-card .card-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--jyt-grad-soft);
  border: 1px solid var(--jyt-line);
  font-size: 1.7rem;
  margin-bottom: 1rem;
}
.jyt-card h5 { font-weight: 700; letter-spacing: 1px; }
.jyt-card p { color: var(--jyt-text-2); font-size: .93rem; }

/* ============ 7. 按钮 ============ */
.jyt-btn-grad {
  background: var(--jyt-grad);
  border: none;
  color: #04121f !important;
  font-weight: 700;
  letter-spacing: 3px;
  border-radius: 999px;
  padding: .7rem 2.4rem;
  box-shadow: 0 8px 28px rgba(46,155,255,.35);
  transition: transform .3s, box-shadow .3s;
}
.jyt-btn-grad:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 36px rgba(46,155,255,.5);
  color: #04121f !important;
}
.jyt-btn-ghost {
  border: 1px solid var(--jyt-blue);
  color: var(--jyt-blue) !important;
  border-radius: 999px;
  padding: .7rem 2.2rem;
  letter-spacing: 2px;
  transition: all .3s;
  background: transparent;
}
.jyt-btn-ghost:hover { background: rgba(46,155,255,.14); color: #fff !important; }
/* 兼容旧模板的 hvr-grow */
.hvr-grow { transition: transform .3s; }
.hvr-grow:hover { transform: scale(1.05); }

/* ============ 8. 页脚 ============ */
.jyt-footer {
  background: var(--jyt-bg-0);
  border-top: 1px solid var(--jyt-line-soft);
  color: var(--jyt-text-2);
}
.jyt-footer h6 { color: var(--jyt-text-1); letter-spacing: 3px; font-weight: 700; margin-bottom: 1.1rem; }
.jyt-footer a { color: var(--jyt-text-2); }
.jyt-footer a:hover { color: var(--jyt-cyan); }
.jyt-footer li { margin-top: .55rem; list-style: none; }
.jyt-footer ul { padding-left: 0; }
.jyt-footer-bottom {
  border-top: 1px solid var(--jyt-line-soft);
  color: var(--jyt-text-3);
  font-size: .85rem;
}

/* ============ 9. 弹窗（免费体验） ============ */
.tryit-modal-content {
  background: linear-gradient(165deg, #10233d, #0a1628);
  border: 1px solid var(--jyt-line);
  border-radius: var(--jyt-radius);
  color: var(--jyt-text-1);
  box-shadow: var(--jyt-shadow);
}
.tryit-modal-content .modal-header { border-bottom: 1px solid var(--jyt-line-soft); }
.tryit-modal-content .form-control,
.tryit-modal-content .form-select {
  background: rgba(6, 14, 28, .7);
  border: 1px solid var(--jyt-line);
  color: var(--jyt-text-1);
}
.tryit-modal-content .form-control:focus,
.tryit-modal-content .form-select:focus {
  background: rgba(6, 14, 28, .9);
  border-color: var(--jyt-blue);
  color: #fff;
  box-shadow: 0 0 0 .25rem rgba(46,155,255,.18);
}
.tryit-modal-content .form-control::placeholder { color: var(--jyt-text-3); }
/* 免费体验弹窗只用 #jytTryitTip 做统一中文提示，隐藏 CF7 默认的 response-output，避免中英文双提示 */
#tryitModal .wpcf7-response-output { display: none !important; }
/* 成功确认小弹窗层级高于表单弹窗，保证叠在上面 */
#tryitSuccessModal { z-index: 1080 !important; }
/* 免费体验两列布局：需求描述固定 5 行高度，弹窗加宽后表单更紧凑 */
.tryit-modal-dialog { max-width: 720px; }
#tryitModal textarea[name="message"] { min-height: calc(1.5em * 5 + 1.5rem); height: calc(1.5em * 5 + 1.5rem); resize: vertical; }
#tryitModal .wpcf7-submit { margin-top: .25rem; }
/* 第二行对齐：手机号与省/市输入框同高同基线，消除 select 与 input 高度差 */
#tryitModal input.form-control,
#tryitModal select.form-control,
#tryitModal select.form-select { height: 44px; min-height: 44px; line-height: 1.5; }
#tryitModal .wpcf7-form-control-wrap { display: block; }
#tryitModal .form-label { line-height: 1.5; margin-bottom: .5rem; }
.wpcf7-response-output { border-radius: var(--jyt-radius-sm); }
.wpcf7 form.sent .wpcf7-response-output { border-color: #22d3ee; }

/* ============ 10. 资讯列表 ============ */
.jyt-news-item {
  border-bottom: 1px solid var(--jyt-line-soft);
  transition: background .3s;
  border-radius: var(--jyt-radius-sm);
}
.jyt-news-item:hover { background: rgba(46,155,255,.05); }
.jyt-news-item .post-title a { color: var(--jyt-text-1); }
.jyt-news-item .post-title a:hover { color: var(--jyt-cyan); }
.jyt-news-item .post-date { color: var(--jyt-text-3); font-size: .85rem; }
.jyt-news-item .news_excerpt { color: var(--jyt-text-2); }
.news_excerpt { color: var(--jyt-text-2); }
.newtab {
  display: inline-block;
  padding: 0 28px;
  line-height: 42px;
  margin: 0 12px 12px 0;
  border: 1px solid var(--jyt-blue);
  border-radius: 999px;
  color: var(--jyt-blue);
  font-size: 1rem;
  transition: all .3s;
}
.newtab:hover { background: var(--jyt-grad); color: #04121f; border-color: transparent; }
.link-none { text-decoration: none; }
.breadcrumb-item a { color: var(--jyt-text-2); }
.breadcrumb-item.active { color: var(--jyt-text-1); }
.wp-pagenavi a, .wp-pagenavi span {
  border: 1px solid var(--jyt-line);
  color: var(--jyt-text-2);
  padding: 4px 10px;
  margin: 2px;
  border-radius: 6px;
}
.wp-pagenavi a:hover, .wp-pagenavi span.current {
  border-color: var(--jyt-blue);
  color: #fff;
  background: rgba(46,155,255,.14);
}
figure.size-full { text-align: center; }
figure.size-full img { max-width: 100%; height: auto; }

/* ============ 11. 滚动显现 ============ */
.jyt-reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s ease; }
.jyt-reveal.jyt-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .jyt-reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ 12. 兼容旧模板类名 ============ */
.t1Color { color: var(--jyt-text-1); font-weight: 800; letter-spacing: 5px; }
.t2Color { color: var(--jyt-cyan); letter-spacing: 3px; }
.t3Color { color: var(--jyt-blue); }
.bg1 { background: var(--jyt-bg-2); }
.text-indent { text-indent: 2em; }
.img16 { width: 16px; height: 16px; margin-bottom: 3px; }
.img24 { width: 24px; height: 24px; margin-bottom: 3px; }
.img36 { width: 36px; height: 36px; margin-bottom: 3px; }
.circle {
  width: 112px; height: 112px;
  border: 2px solid var(--jyt-blue);
  border-radius: 50%;
  line-height: 108px;
  margin: auto;
  background: var(--jyt-grad-soft);
  box-shadow: 0 0 32px rgba(46,155,255,.25);
}
.circle img { display: inline-block; width: 45%; }
.scene { min-height: 210px; color: #fff; display: flex; align-items: center; }

/* ============ 13. 响应式 ============ */
@media (max-width: 991.98px) {
  .jyt-section { padding: 3rem 0; }
  /* 移动端 mega menu 变手风琴：全宽下拉改为纵向 */
  .jyt-navbar .dropdown-fullwidth .dropdown-menu { border-radius: var(--jyt-radius-sm); }
  .jyt-navbar .navbar-collapse {
    max-height: 78vh;
    overflow-y: auto;
    padding-bottom: 1rem;
  }
  .jyt-hero-caption { background: linear-gradient(180deg, rgba(5,11,22,.55), rgba(5,11,22,.85)); }
}
@media (max-width: 767.98px) {
  .jyt-sec-title { letter-spacing: 2px; }
  .newtab { padding: 0 20px; line-height: 38px; font-size: .9rem; margin-right: 8px; }
  .jyt-btn-grad, .jyt-btn-ghost { width: auto; max-width: 320px; margin-bottom: .6rem; }
  .circle { width: 88px; height: 88px; line-height: 84px; }
}
@media (max-width: 575.98px) {
  .jyt-section { padding: 2.4rem 0; }
  .jyt-card { margin-bottom: 1rem; }
}

/* ============ 14. 无障碍与字体兜底 ============ */
:root { --jyt-font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "黑体", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; z-index: 2000; width: auto !important; height: auto !important; padding: .6rem 1rem; background: #fff; color: #000; border-radius: 8px; clip: auto !important; }
.jyt-card .card-icon svg { width: 30px; height: 30px; }
.jyt-hero-img { width: 100%; }
/* 首页数据/场景/方案：原来内联 style 收敛 */
.jyt-grad-text { color: var(--jyt-cyan); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .jyt-grad-text { background: var(--jyt-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.jyt-btn-sm { padding: .3rem 1.2rem; letter-spacing: 1px; }
.jyt-scene { border-radius: var(--jyt-radius); border: 1px solid var(--jyt-line); min-height: 190px; }
.jyt-scene img { height: 260px; object-fit: cover; }
.jyt-solution-img { height: 210px; object-fit: cover; }
.jyt-arch-title { color: var(--jyt-text-2); letter-spacing: 2px; }
