/* =====================================================================
   jx-xtm.com · 首页专属样式 home.css
   杂志式错落矩阵 · 米白/浅绿/浅卡其 · 与 base.css 配套
   ===================================================================== */

/* ============ 1. 全屏 Hero ============ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px; overflow: hidden;
  background-color: var(--cream-200);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(250, 246, 236, .96) 0%, rgba(250, 246, 236, .88) 34%, rgba(250, 246, 236, .35) 72%, rgba(240, 234, 221, .55) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-title {
  font-size: clamp(34px, 5.4vw, 62px); line-height: 1.22; letter-spacing: 3px; font-weight: 800;
  color: var(--ink-900); max-width: 780px; margin-bottom: 22px;
}
.hero-title .line { display: block; }
.hero-title .line2 .char { color: var(--green-600); }
.hero-title .hl-green { color: var(--green-600); position: relative; }
.hero-title .hl-green::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 12px;
  background: var(--khaki-200); opacity: .45; z-index: -1; border-radius: 4px;
}
.hero-title .char { display: inline-block; opacity: 0; transform: translateY(24px); animation: charUp .6s ease forwards; }
@keyframes charUp { to { opacity: 1; transform: none; } }
.hero-sub { font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-700); max-width: 640px; line-height: 2; margin-bottom: 34px; }
.hero-sub b { color: var(--green-600); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips .chip {
  font-size: 13px; color: var(--ink-700); background: rgba(253, 251, 245, .82);
  border: 1px solid var(--line); padding: 7px 16px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-chips .chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); flex: none; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink-500); font-size: 12px; letter-spacing: 2px;
}
.hero-scroll .wheel {
  width: 24px; height: 38px; border: 2px solid var(--green-400); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 7px;
}
.hero-scroll .wheel i { width: 4px; height: 8px; border-radius: 4px; background: var(--green-500); animation: wheelDown 1.6s ease-in-out infinite; }
@keyframes wheelDown { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(8px); opacity: .3; } }

/* Hero 浮动菱形装饰 */
.hero-dots i {
  position: absolute; border: 2px solid var(--green-400); transform: rotate(45deg); border-radius: 3px;
  animation: floatY 6s ease-in-out infinite;
}
.hero-dots i:nth-child(1) { width: 16px; height: 16px; top: 22%; right: 16%; opacity: .5; }
.hero-dots i:nth-child(2) { width: 10px; height: 10px; top: 34%; right: 26%; background: var(--khaki-200); border: none; animation-delay: 1.2s; opacity: .7; }
.hero-dots i:nth-child(3) { width: 12px; height: 12px; bottom: 26%; right: 10%; background: var(--green-200); border: none; animation-delay: 2s; }

/* ============ 2. 快速入口（错落矩阵） ============ */
.quick-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative;
}
.quick-card {
  background: var(--cream-50); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  display: flex; gap: 18px; align-items: flex-start;
  transition: transform .3s ease, box-shadow .3s ease;
}
.quick-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.quick-card::after {
  content: ""; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px;
  border: 2px dashed var(--khaki-200); border-radius: 50%; opacity: .5; transition: transform .5s ease;
}
.quick-card:hover::after { transform: rotate(90deg); }
.quick-ico {
  width: 54px; height: 54px; border-radius: 16px; flex: none;
  background: var(--green-100); border: 1px solid var(--green-200);
  display: flex; align-items: center; justify-content: center;
}
.quick-ico svg { width: 28px; height: 28px; stroke: var(--green-600); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.quick-card:nth-child(2) .quick-ico, .quick-card:nth-child(5) .quick-ico { background: var(--khaki-100); border-color: var(--khaki-200); }
.quick-card:nth-child(2) .quick-ico svg, .quick-card:nth-child(5) .quick-ico svg { stroke: var(--khaki-400); }
.quick-body h3 { font-size: 17px; margin-bottom: 8px; }
.quick-body p { font-size: 13.5px; color: var(--ink-500); line-height: 1.8; }
.quick-body a { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 13.5px; color: var(--green-600); font-weight: 600; }
.quick-body a svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform .25s ease; }
.quick-body a:hover svg { transform: translateX(4px); }
/* 灵动错位：第二行卡片上下偏移 */
.quick-grid .offset { transform: translateY(26px); }
.quick-grid .offset:hover { transform: translateY(18px); }

/* ============ 3. 核心优势 ============ */
.adv-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.adv-media { position: relative; }
.adv-media img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); width: 100%; }
.adv-media .adv-badge {
  position: absolute; left: -18px; bottom: 34px; background: var(--green-600); color: var(--cream-50);
  border-radius: var(--radius-md); padding: 18px 22px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px; animation: floatY 5s ease-in-out infinite;
}
.adv-media .adv-badge strong { font-size: 30px; display: block; line-height: 1; }
.adv-media .adv-badge span { font-size: 12.5px; opacity: .9; }
.adv-list { display: grid; gap: 18px; margin-top: 8px; }
.adv-item {
  display: flex; gap: 16px; background: var(--cream-50); border: 1px solid var(--line-soft);
  border-radius: var(--radius-md); padding: 20px 22px; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, border-color .3s ease;
}
.adv-item:hover { transform: translateX(8px); border-color: var(--green-300); }
.adv-item .adv-num {
  font-size: 30px; font-weight: 800; color: var(--khaki-300); font-family: Georgia, serif; line-height: 1; flex: none;
}
.adv-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.adv-item p { font-size: 13.5px; color: var(--ink-500); line-height: 1.8; }

/* ============ 4. 工种矩阵 ============ */
.trade-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trade-tile {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--cream-50); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  padding: 26px 22px; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .3s ease, box-shadow .3s ease;
}
.trade-tile::before {
  content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px;
  background: var(--green-100); border-radius: 50%; transition: transform .45s ease;
}
.trade-tile:nth-child(even)::before { background: var(--khaki-100); }
.trade-tile:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-md); }
.trade-tile:hover::before { transform: scale(2.2); }
.trade-tile .t-ico { width: 48px; height: 48px; margin-bottom: 18px; position: relative; z-index: 1; }
.trade-tile .t-ico svg { width: 48px; height: 48px; stroke: var(--green-600); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trade-tile:nth-child(even) .t-ico svg { stroke: var(--khaki-400); }
.trade-tile h3 { font-size: 17px; margin-bottom: 6px; position: relative; z-index: 1; }
.trade-tile p { font-size: 12.5px; color: var(--ink-500); position: relative; z-index: 1; }
.trade-tile .t-more {
  margin-top: 12px; font-size: 13px; color: var(--green-600); font-weight: 600; position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 5px;
}
.trade-tile .t-more svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ============ 5. 报考流程 ============ */
.flow-wrap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.flow-step { position: relative; padding: 0 22px; text-align: center; }
.flow-step::after {
  content: ""; position: absolute; top: 30px; left: 50%; width: 100%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--green-300) 0 8px, transparent 8px 14px);
}
.flow-step:last-child::after { display: none; }
.flow-step .f-num {
  width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--cream-50); border: 2px solid var(--green-400); position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: var(--green-600); font-family: Georgia, serif;
  box-shadow: var(--shadow-sm); transition: background .3s ease, color .3s ease;
}
.flow-step:nth-child(even) .f-num { border-color: var(--khaki-300); color: var(--khaki-400); }
.flow-step:hover .f-num { background: var(--green-600); color: var(--cream-50); }
.flow-step h3 { font-size: 15.5px; margin-bottom: 8px; }
.flow-step p { font-size: 12.5px; color: var(--ink-500); line-height: 1.7; }

/* ============ 6. 本地服务 ============ */
.local-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.local-card {
  position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md);
  min-height: 360px; display: flex; align-items: flex-end;
}
.local-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.local-card:hover img { transform: scale(1.06); }
.local-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(46, 45, 38, .72) 100%);
}
.local-body { position: relative; z-index: 1; padding: 30px 28px; color: var(--cream-50); width: 100%; }
.local-body .l-tag { font-size: 12px; letter-spacing: 2px; background: rgba(253, 251, 245, .18); border: 1px solid rgba(253, 251, 245, .35); padding: 4px 12px; border-radius: 999px; }
.local-body h3 { color: var(--cream-50); font-size: 26px; margin: 12px 0 8px; letter-spacing: 2px; }
.local-body p { font-size: 13.5px; opacity: .92; line-height: 1.8; margin-bottom: 14px; }
.local-body a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.local-body a svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform .25s ease; }
.local-body a:hover svg { transform: translateX(4px); }

/* ============ 7. 数据带 ============ */
.stats-band { background: var(--green-700); padding: 54px 0; position: relative; overflow: hidden; }
.stats-band::before {
  content: ""; position: absolute; left: -80px; top: -80px; width: 260px; height: 260px;
  border: 3px dashed rgba(220, 203, 164, .3); border-radius: 50%;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item strong { display: block; font-size: clamp(30px, 3.4vw, 46px); color: var(--cream-50); font-weight: 800; line-height: 1.2; }
.stat-item strong em { color: var(--khaki-200); font-size: .7em; margin-left: 4px; }
.stat-item span { display: block; margin-top: 6px; font-size: 13.5px; color: rgba(253, 251, 245, .75); letter-spacing: 2px; }

/* ============ 8. 案例 ============ */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--cream-50); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.case-card .c-img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.case-card .c-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.case-card:hover .c-img img { transform: scale(1.08); }
.case-card .c-img .c-tag {
  position: absolute; left: 14px; top: 14px; background: var(--green-600); color: var(--cream-50);
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
}
.case-card .c-body { padding: 20px 22px 24px; }
.case-card .c-body h3 { font-size: 16.5px; margin-bottom: 8px; }
.case-card .c-body p { font-size: 13.5px; color: var(--ink-500); line-height: 1.8; }
.case-card .c-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13.5px; color: var(--green-600); font-weight: 600; }
.case-card .c-more svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ============ 9. 资讯列表（首页底部，CMS 数据源） ============ */
.news-home { background: var(--cream-200); }
.news-groups { display: grid; gap: 18px; }
.news-group-main { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card-main { border-radius: var(--radius-md); overflow: hidden; background: var(--cream-50); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; }
.news-card-main:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card-main .n-img { aspect-ratio: 16 / 9; overflow: hidden; }
.news-card-main .n-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card-main:hover .n-img img { transform: scale(1.06); }
.news-card-main .n-body { padding: 16px 18px 20px; }
.news-card-main h3 { font-size: 15.5px; line-height: 1.6; margin-bottom: 8px; }
.news-card-main h3 a:hover { color: var(--green-600); }
.news-card-main p { font-size: 13px; color: var(--ink-500); line-height: 1.75; }
.news-card-main .n-meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12.5px; color: var(--ink-300); }
.news-card-main .n-meta svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.news-group-sub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card-sub {
  display: flex; gap: 14px; align-items: center; background: var(--cream-50);
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 14px 16px;
  box-shadow: var(--shadow-sm); transition: transform .3s ease, border-color .3s ease;
}
.news-card-sub:hover { transform: translateX(6px); border-color: var(--green-300); }
.news-card-sub .n-img { width: 92px; height: 68px; border-radius: 8px; overflow: hidden; flex: none; }
.news-card-sub .n-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-sub .n-txt { flex: 1; min-width: 0; }
.news-card-sub h3 { font-size: 14px; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-card-sub h3 a:hover { color: var(--green-600); }
.news-card-sub .n-date { font-size: 12px; color: var(--ink-300); margin-top: 6px; }

/* ============ 10. CTA 带 ============ */
.center-cta { text-align: center; margin-top: 44px; }
.sec-foot { text-align: center; margin-top: 36px; }
.sec-note { text-align: center; margin-top: 30px; font-size: 14px; color: var(--ink-500); }
.sec-note a { color: var(--green-600); font-weight: 600; }
.cta-band {
  background: linear-gradient(120deg, var(--green-600), var(--green-700));
  border-radius: var(--radius-xl); padding: 52px 48px; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border: 3px dashed rgba(220, 203, 164, .35); border-radius: 50%;
}
.cta-band::after {
  content: ""; position: absolute; left: -40px; bottom: -70px; width: 160px; height: 160px;
  border-radius: 50%; background: rgba(253, 251, 245, .06);
}
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.cta-inner h2 { color: var(--cream-50); font-size: clamp(24px, 3vw, 34px); letter-spacing: 2px; }
.cta-inner p { color: rgba(253, 251, 245, .85); margin-top: 10px; font-size: 14.5px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-tel {
  display: inline-flex; align-items: center; gap: 10px; background: var(--cream-50); color: var(--green-700);
  padding: 14px 28px; border-radius: 999px; font-weight: 800; font-size: 18px; box-shadow: var(--shadow-md);
  transition: transform .25s ease;
}
.cta-tel:hover { transform: translateY(-2px); }
.cta-tel svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; }

/* ============ 响应式 ============ */
@media (max-width: 1199px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid .offset { transform: none; }
  .quick-grid .offset:hover { transform: translateY(-8px); }
  .trade-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-wrap { grid-template-columns: 1fr; gap: 36px; }
  .flow-wrap { grid-template-columns: repeat(3, 1fr); gap: 26px 0; }
  .flow-step:nth-child(3)::after { display: none; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .news-group-main, .news-group-sub { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .hero { min-height: 88vh; padding-top: calc(var(--nav-h) + 30px); }
  .hero-title { letter-spacing: 1px; }
  .hero-chips .chip { font-size: 12px; padding: 6px 12px; }
  .quick-grid, .trade-grid, .case-grid, .news-group-main, .news-group-sub { grid-template-columns: 1fr; }
  .flow-wrap { grid-template-columns: 1fr; gap: 30px; }
  .flow-step::after { display: none; }
  .local-wrap { grid-template-columns: 1fr; }
  .local-card { min-height: 300px; }
  .cta-band { padding: 38px 26px; }
  .adv-media .adv-badge { left: 10px; bottom: 14px; padding: 14px 16px; }
}
