/* =========================================================
   CONVEY CALC
   ENGINEERING GUIDES
========================================================= */

/* =========================================================
   PAGE
========================================================= */

.guides-page {
  background: #f8fafc;
  color: #172033;
}

/* =========================================================
   MAIN
========================================================= */

.guides-page .guides-main {
  padding: 58px 0 72px;
}

/* =========================================================
   INTRO
========================================================= */

.guides-page .guides-intro {
  display: grid;

  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(0, 1.15fr);

  gap: 50px;

  align-items: end;

  margin-bottom: 34px;
}

.guides-page .section-kicker {
  display: block;

  margin-bottom: 8px;

  color: #0284c7;

  font-size: 10px;

  font-weight: 900;

  letter-spacing: 1.7px;
}

.guides-page .guides-intro h2 {
  margin: 0;

  color: #172033;

  font-size: 32px;

  line-height: 1.2;

  letter-spacing: -0.5px;
}

.guides-page .guides-intro p {
  margin: 0;

  color: #64748b;

  font-size: 14px;

  line-height: 1.8;
}

/* =========================================================
   FEATURED GUIDE
========================================================= */

.guides-page .featured-guide {
  display: grid;

  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(300px, 0.9fr);

  min-height: 300px;

  margin-bottom: 34px;

  overflow: hidden;

  background: linear-gradient(135deg, #0b1728, #12263e);

  border-radius: 14px;

  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.guides-page .featured-content {
  display: flex;

  flex-direction: column;

  align-items: flex-start;

  justify-content: center;

  padding: 42px;
}

.guides-page .featured-label {
  display: inline-block;

  margin-bottom: 13px;

  color: #5eead4;

  font-size: 10px;

  font-weight: 900;

  letter-spacing: 1.7px;
}

.guides-page .featured-content h2 {
  max-width: 580px;

  margin: 0 0 14px;

  color: #ffffff;

  font-size: 32px;

  line-height: 1.2;
}

.guides-page .featured-content p {
  max-width: 590px;

  margin: 0 0 25px;

  color: #aebdce;

  font-size: 13px;

  line-height: 1.8;
}

.guides-page .featured-link {
  display: inline-flex;

  align-items: center;

  gap: 14px;

  padding: 10px 16px;

  color: #07111f;

  background: #28a8ff;

  border-radius: 6px;

  font-size: 11px;

  font-weight: 900;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.guides-page .featured-link:hover {
  background: #5ebcff;

  transform: translateY(-1px);
}

.guides-page .featured-link span {
  font-size: 16px;
}

/* =========================================================
   FEATURED VISUAL
========================================================= */

.guides-page .featured-visual {
  position: relative;

  min-height: 300px;

  overflow: hidden;

  background: radial-gradient(
    circle at 50% 50%,
    rgba(40, 168, 255, 0.12),
    transparent 60%
  );
}

.guides-page .visual-pipe {
  position: absolute;

  left: 12%;
  right: 10%;

  top: 50%;

  height: 6px;

  background: linear-gradient(90deg, #28a8ff, #5eead4, #28a8ff);

  border-radius: 10px;

  transform: translateY(-50%);

  opacity: 0.7;
}

.guides-page .visual-line {
  position: absolute;

  width: 2px;

  background: rgba(94, 234, 212, 0.25);

  transform-origin: center;
}

.guides-page .line-one {
  left: 28%;

  top: 17%;

  height: 33%;
}

.guides-page .line-two {
  left: 55%;

  top: 50%;

  height: 34%;
}

.guides-page .line-three {
  left: 77%;

  top: 19%;

  height: 31%;
}

.guides-page .visual-node {
  position: absolute;

  width: 14px;
  height: 14px;

  border: 3px solid #5eead4;

  background: #0d1c2e;

  border-radius: 50%;

  box-shadow: 0 0 0 7px rgba(94, 234, 212, 0.06);
}

.guides-page .node-one {
  left: calc(28% - 6px);

  top: calc(50% - 7px);
}

.guides-page .node-two {
  left: calc(55% - 6px);

  top: calc(50% - 7px);
}

.guides-page .node-three {
  left: calc(77% - 6px);

  top: calc(50% - 7px);
}

/* =========================================================
   TOOLBAR
========================================================= */

.guides-page .guides-toolbar {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    240px;

  gap: 16px;

  padding: 20px;

  background: #ffffff;

  border: 1px solid #e2e8f0;

  border-radius: 12px;

  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);

  margin-bottom: 16px;
}

.guides-page .search-box,
.guides-page .category-filter {
  min-width: 0;
}

.guides-page .guides-toolbar label {
  display: block;

  margin-bottom: 7px;

  color: #334155;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 0.3px;
}

.guides-page .guides-toolbar input,
.guides-page .guides-toolbar select {
  width: 100%;

  height: 44px;

  padding: 0 13px;

  color: #172033;

  background: #f8fafc;

  border: 1px solid #dbe3ec;

  border-radius: 7px;

  outline: none;

  font: inherit;

  font-size: 13px;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.guides-page .guides-toolbar input:focus,
.guides-page .guides-toolbar select:focus {
  background: #ffffff;

  border-color: #28a8ff;

  box-shadow: 0 0 0 3px rgba(40, 168, 255, 0.1);
}

/* =========================================================
   META
========================================================= */

.guides-page .guides-meta {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 18px;

  color: #94a3b8;

  font-size: 11px;
}

.guides-page .guides-meta span:first-child {
  color: #475569;

  font-weight: 700;
}

/* =========================================================
   GUIDE GRID
========================================================= */

.guides-page .guides-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 18px;
}

/* =========================================================
   GUIDE CARD
========================================================= */

.guides-page .guide-card {
  display: flex;

  flex-direction: column;

  min-width: 0;

  min-height: 285px;

  padding: 22px;

  background: #ffffff;

  border: 1px solid #e2e8f0;

  border-radius: 12px;

  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.045);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

/* 隐藏筛选后的卡片 */
.guides-page .guide-card.hidden {
    display: none !important;
}

.guides-page .guide-card:hover {
  transform: translateY(-3px);

  border-color: #cbd5e1;

  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

/* =========================================================
   CARD TOP
========================================================= */

.guides-page .guide-card-top {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;

  margin-bottom: 18px;
}

.guides-page .guide-category {
  color: #0284c7;

  font-size: 9px;

  font-weight: 900;

  letter-spacing: 0.8px;

  line-height: 1.4;
}

.guides-page .guide-number {
  color: #cbd5e1;

  font-size: 11px;

  font-weight: 800;
}

/* =========================================================
   CARD CONTENT
========================================================= */

.guides-page .guide-card h3 {
  margin: 0 0 10px;

  color: #172033;

  font-size: 21px;

  line-height: 1.3;
}

.guides-page .guide-card p {
  margin: 0;

  color: #64748b;

  font-size: 12px;

  line-height: 1.75;
}

/* =========================================================
   CARD FOOTER
========================================================= */

.guides-page .guide-card-footer {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  margin-top: auto;

  padding-top: 22px;
}

.guides-page .guide-card-footer span {
  display: inline-flex;

  padding: 5px 8px;

  color: #475569;

  background: #f1f5f9;

  border-radius: 4px;

  font-size: 9px;

  font-weight: 800;
}

.guides-page .guide-card-footer a {
  color: #0284c7;

  font-size: 10px;

  font-weight: 800;

  white-space: nowrap;

  transition: color 0.2s ease;
}

.guides-page .guide-card-footer a:hover {
  color: #0369a1;
}

/* =========================================================
   EMPTY
========================================================= */

.guides-page .guides-empty {
  padding: 60px 20px;

  text-align: center;

  background: #ffffff;

  border: 1px solid #e2e8f0;

  border-radius: 12px;
}

.guides-page .guides-empty[hidden] {
  display: none;
}

.guides-page .empty-icon {
  width: 42px;
  height: 42px;

  display: grid;

  place-items: center;

  margin: 0 auto 14px;

  color: #64748b;

  background: #f1f5f9;

  border-radius: 50%;

  font-weight: 900;
}

.guides-page .guides-empty h3 {
  margin: 0 0 6px;

  color: #334155;

  font-size: 18px;
}

.guides-page .guides-empty p {
  margin: 0;

  color: #94a3b8;

  font-size: 12px;
}

/* =========================================================
   CTA
========================================================= */

.guides-page .guides-cta {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;

  margin-top: 28px;

  padding: 30px 32px;

  background: linear-gradient(135deg, #eef8ff, #f5fbff);

  border: 1px solid #dbeafe;

  border-radius: 12px;
}

.guides-page .cta-kicker {
  display: block;

  margin-bottom: 7px;

  color: #0284c7;

  font-size: 9px;

  font-weight: 900;

  letter-spacing: 1.4px;
}

.guides-page .guides-cta h2 {
  margin: 0 0 7px;

  color: #172033;

  font-size: 22px;

  line-height: 1.3;
}

.guides-page .guides-cta p {
  max-width: 680px;

  margin: 0;

  color: #64748b;

  font-size: 12px;

  line-height: 1.7;
}

.guides-page .cta-button {
  flex: 0 0 auto;

  display: inline-flex;

  align-items: center;

  gap: 13px;

  padding: 12px 17px;

  color: #ffffff;

  background: #0284c7;

  border-radius: 6px;

  font-size: 10px;

  font-weight: 900;

  white-space: nowrap;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.guides-page .cta-button:hover {
  background: #0369a1;

  transform: translateY(-1px);
}

.guides-page .cta-button span {
  font-size: 15px;
}

/* =========================================================
   ENGINEERING NOTE
========================================================= */

.guides-page .guides-note {
  display: flex;

  gap: 14px;

  margin-top: 24px;

  padding: 18px 20px;

  background: #f8fbff;

  border: 1px solid #dbeafe;

  border-left: 4px solid #28a8ff;

  border-radius: 8px;
}

.guides-page .note-mark {
  flex: 0 0 auto;

  width: 23px;
  height: 23px;

  display: grid;

  place-items: center;

  color: #0369a1;

  background: #e0f2fe;

  border-radius: 50%;

  font-size: 12px;

  font-weight: 900;
}

.guides-page .guides-note strong {
  display: block;

  margin-bottom: 4px;

  color: #334155;

  font-size: 11px;

  letter-spacing: 0.5px;

  text-transform: uppercase;
}

.guides-page .guides-note p {
  margin: 0;

  color: #64748b;

  font-size: 11px;

  line-height: 1.7;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {
  .guides-page .guides-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .guides-page .featured-guide {
    grid-template-columns: 1fr;
  }

  .guides-page .featured-visual {
    min-height: 180px;
  }
}

@media (max-width: 760px) {
  .guides-page .guides-intro {
    grid-template-columns: 1fr;

    gap: 16px;

    align-items: start;
  }

  .guides-page .guides-toolbar {
    grid-template-columns: 1fr;
  }

  .guides-page .guides-cta {
    align-items: flex-start;

    flex-direction: column;
  }
}

@media (max-width: 620px) {
  
  .guides-page .guides-main {
    padding: 42px 0 55px;
  }

  .guides-page .guides-grid {
    grid-template-columns: 1fr;
  }

  .guides-page .guides-meta {
    align-items: flex-start;

    flex-direction: column;

    gap: 5px;
  }

  .guides-page .featured-content {
    padding: 30px 24px;
  }

  .guides-page .featured-content h2 {
    font-size: 27px;
  }
}

.guides-page .guide-card.guide-highlight {
  border-color: #28a8ff;
  box-shadow:
    0 0 0 3px rgba(40, 168, 255, 0.10),
    0 16px 35px rgba(15, 23, 42, 0.08);
}

[hidden] {
    display: none !important;
}