/*
  首页模板样式 - 源自 fcc-emc-lab/style.css 原版
  文件: css/front-page.css
  模板: front-page.php
*/

:root {
  --ink: #06172f;
  --navy: #082650;
  --blue: #1267f1;
  --cyan: #27c5ff;
  --steel: #6c7b8f;
  --line: #d9e4f2;
  --soft: #f3f7fb;
  --white: #fff;
  --accent: #ff8a2a;
  --green: #18b77a;
  --shadow: 0 18px 48px rgba(8, 38, 80, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 30px 0;
}

.section.soft { background: var(--soft); }
.section.dark {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(3, 18, 42, .96), rgba(8, 48, 98, .94));
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 32px;
}

.section-head.center {
  display: block;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-head p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--steel);
}

.dark .section-head p { color: rgba(255, 255, 255, .72); }
.center p { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #9fdfff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(18, 103, 241, .28);
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(18, 103, 241, .36);
}

.btn.secondary {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: none;
}

.btn.accent {
  background: var(--accent);
  box-shadow: 0 12px 26px rgba(255, 138, 42, .24);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.domain-card,
.case-card,
.article-card,
.faq-item,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 240px;
  padding: 28px;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border: 1px solid #bcd5f7;
  border-radius: 50%;
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.service-card h3,
.case-card h3,
.article-card h3,
.faq-item h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.case-card h3,
.article-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card p,
.case-card p,
.article-card p,
.faq-item p,
.domain-card p {
  margin: 0;
  color: var(--steel);
  font-size: 14px;
}

.case-card p,
.article-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  margin-top: 20px;
  color: var(--blue);
  font-weight: 800;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.domain-card {
  padding: 18px;
  min-height: 138px;
}

.domain-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.lab-layout {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 26px;
  align-items: stretch;
}

.lab-image {
  min-height: 430px;
  border-radius: var(--radius);
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.lab-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(39, 197, 255, .12), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, .04), transparent 50%);
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.capability-item {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
}

.capability-item strong {
  display: block;
  margin-bottom: 5px;
}

.capability-item span {
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

.test-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.matrix-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, #eef6ff);
  box-shadow: var(--shadow);
}

.matrix-panel h3 {
  margin: 0;
  padding: 18px 24px;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue), #064a9d);
  font-size: 22px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  padding: 26px;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  font-weight: 700;
  color: #183b67;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 103, 241, .12);
}

.medical-band {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(90deg, rgba(3, 18, 42, .96), rgba(7, 56, 116, .86));
}

.medical-tags,
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.medical-tags span,
.why-item {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  font-weight: 800;
}

.process {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  counter-reset: step;
}

.process-step {
  position: relative;
  min-height: 118px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
  font-weight: 800;
  counter-increment: step;
}

.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 9px;
  color: var(--blue);
  font-size: 13px;
}

.case-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

a.case-card,
a.article-card,
.case-card,
.article-card {
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.thumb {
  height: 178px;
  background: var(--navy) center / cover no-repeat;
}

.card-body {
  padding: 22px;
}

.why-section {
  background: linear-gradient(180deg, #fff, #eef5ff);
}

.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.why-item {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.why-item strong {
  display: block;
  margin-bottom: 8px;
}

.why-item span {
  color: var(--steel);
  font-size: 13px;
  font-weight: 500;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-item {
  padding: 22px;
  box-shadow: none;
}

.contact-section {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(2, 16, 38, .98), rgba(4, 46, 101, .96)),
    radial-gradient(circle at 80% 20%, rgba(39, 197, 255, .2), transparent 28%);
}

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 34px;
}

.contact-info h2 {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1.2;
}

.contact-info p,
.contact-list {
  color: rgba(255, 255, 255, .76);
}

.contact-list {
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.contact-list li { margin: 10px 0; }

.contact-card {
  padding: 26px;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .full { grid-column: 1 / -1; }

.contact-card label {
  display: block;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 800;
}

.contact-card input,
.contact-card select,
.contact-card textarea {
  width: 100%;
  margin-top: 6px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
}

.contact-card textarea { min-height: 112px; resize: vertical; }
.contact-card option { color: var(--ink); }

/* ===== Hero ===== */
.dk-fcc-hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: #ffffff;
  background-color: #03122d;
  background-image: url("../assets/images/fcc-emc-hero-bg.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.dk-fcc-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(2, 10, 28, .96) 0%,
      rgba(3, 18, 48, .88) 29%,
      rgba(3, 20, 54, .58) 50%,
      rgba(3, 18, 48, .15) 74%,
      rgba(3, 18, 48, .05) 100%
    );
}

.dk-fcc-hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 120px 80px 90px;
}

.dk-fcc-hero-content {
  max-width: 720px;
}

.dk-fcc-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: #66d9ff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dk-fcc-hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #1e8cff, #66d9ff);
}

.dk-fcc-hero h1 {
  margin: 0;
  max-width: 760px;
  color: #ffffff;
  font-size: 76px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}

.dk-fcc-hero p {
  margin: 32px 0 0;
  max-width: 720px;
  color: rgba(255, 255, 255, .9);
  font-size: 24px;
  line-height: 1.8;
  font-weight: 400;
}

.dk-fcc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 42px;
}

.dk-fcc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  height: 60px;
  padding: 0 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.dk-fcc-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #1476ff, #0057e7);
  box-shadow: 0 14px 36px rgba(0, 105, 255, .35);
}

.dk-fcc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0, 105, 255, .5);
}

.dk-fcc-btn-outline {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
}

.dk-fcc-btn-outline:hover {
  border-color: rgba(102, 217, 255, .8);
  background: rgba(20, 118, 255, .18);
}

.dk-fcc-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 46px;
}

.dk-fcc-hero-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .06);
  font-size: 15px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

/* Responsive */
@media (max-width: 1080px) {
  .dk-fcc-hero {
    min-height: 640px;
    background-position: 62% center;
  }
  .dk-fcc-hero-container {
    padding: 100px 40px 80px;
  }
  .dk-fcc-hero-content {
    max-width: 680px;
  }
  .dk-fcc-hero h1 {
    font-size: 58px;
  }
  .dk-fcc-hero p {
    font-size: 21px;
  }
  .card-grid,
  .domain-grid,
  .medical-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-layout { grid-template-columns: 1fr; }
  .service-process-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), 1180px); }
  .dk-fcc-hero {
    min-height: 720px;
    background-position: 70% center;
  }
  .dk-fcc-hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(2, 10, 28, .98) 0%,
        rgba(3, 18, 48, .92) 55%,
        rgba(3, 18, 48, .55) 100%
      );
  }
  .dk-fcc-hero-container {
    padding: 90px 22px 70px;
  }
  .dk-fcc-hero h1 {
    font-size: 42px;
    line-height: 1.16;
  }
  .dk-fcc-hero p {
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.7;
  }
  .dk-fcc-hero-actions {
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
  }
  .dk-fcc-btn {
    width: 100%;
    height: 56px;
  }
  .dk-fcc-hero-tags {
    gap: 10px;
    margin-top: 32px;
  }
  .dk-fcc-hero-tags a {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }
  .lab-layout,
  .test-matrix,
  .medical-band,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .card-grid,
  .domain-grid,
  .check-list,
  .case-grid,
  .article-grid,
  .faq-grid,
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  .form-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section { padding: 54px 0; }
  .section-head { display: block; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .medical-band { padding: 24px; }
  .medical-tags { grid-template-columns: 1fr 1fr; }
}

/* ===== 悬浮交互效果 ===== */
.hfjxzl-frontpage .service-card {
  transition: transform .3s ease, box-shadow .3s ease;
}

.hfjxzl-frontpage .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(8, 38, 80, .16);
}

.hfjxzl-frontpage .case-card,
.hfjxzl-frontpage .article-card {
  transition: transform .3s ease, box-shadow .3s ease;
}

.hfjxzl-frontpage .case-card:hover,
.hfjxzl-frontpage .article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(8, 38, 80, .16);
}

.hfjxzl-frontpage .case-card:hover .thumb,
.hfjxzl-frontpage .article-card:hover .thumb {
  transform: scale(1.06);
}

.hfjxzl-frontpage .case-card .thumb,
.hfjxzl-frontpage .article-card .thumb {
  transition: transform .4s ease;
}

.hfjxzl-frontpage .domain-card {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.hfjxzl-frontpage .domain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(8, 38, 80, .12);
  border-color: var(--blue);
}

.hfjxzl-frontpage .capability-item {
  transition: background .25s ease;
}

.hfjxzl-frontpage .capability-item:hover {
  background: rgba(255, 255, 255, .06);
}

.hfjxzl-frontpage .faq-item {
  transition: box-shadow .3s ease, transform .3s ease;
}

.hfjxzl-frontpage .faq-item:hover {
  box-shadow: 0 8px 24px rgba(8, 38, 80, .1);
  transform: translateY(-2px);
}

.hfjxzl-frontpage .why-item {
  transition: transform .3s ease, box-shadow .3s ease;
}

.hfjxzl-frontpage .why-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(8, 38, 80, .12);
}

.hfjxzl-frontpage .matrix-panel {
  transition: transform .3s ease, box-shadow .3s ease;
}

.hfjxzl-frontpage .matrix-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(8, 38, 80, .12);
}

.hfjxzl-frontpage .dk-fcc-hero-tags a {
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.hfjxzl-frontpage .dk-fcc-hero-tags a:hover {
  border-color: rgba(102, 217, 255, .8);
  background: rgba(20, 118, 255, .18);
  transform: translateY(-2px);
}

.hfjxzl-frontpage .btn {
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.hfjxzl-frontpage .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(18, 103, 241, .35);
}

.hfjxzl-frontpage .read-more {
  transition: color .25s ease;
}

.hfjxzl-frontpage .case-card:hover .read-more,
.hfjxzl-frontpage .article-card:hover .read-more {
  color: var(--blue);
}
