/* 技术标编写落地页：对齐设计稿 */

.tech-wb {
  --tech-blue: #3f67f4;
  --tech-violet: #7a58e9;
  --tech-green: #169b78;
  width: min(100%, 1460px);
  margin: 0 auto;
  padding: 16px 8px 32px;
  color: #17233d;
}

.tech-wb button {
  font: inherit;
  color: inherit;
}

.tech-wb a {
  color: inherit;
  text-decoration: none;
}

.tech-wb .lucide {
  width: 16px;
  height: 16px;
  flex: none;
}

.tech-command-stage {
  position: relative;
  isolation: isolate;
  height: 212px;
  overflow: hidden;
  border: 1px solid #d7e3f8;
  border-radius: 22px;
  background: #f5f8ff;
  box-shadow:
    0 14px 38px rgb(43 64 112 / 7.5%),
    inset 0 1px 0 rgb(255 255 255 / 95%);
}

.tech-command-stage > img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 29%;
  pointer-events: none;
  user-select: none;
}

.tech-command-stage::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgb(249 252 255 / 99.5%) 0%,
    rgb(249 252 255 / 97%) 34%,
    rgb(249 252 255 / 58%) 46%,
    rgb(249 252 255 / 7%) 60%,
    transparent 100%
  );
  content: "";
  pointer-events: none;
}

.tech-command-copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: 48%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 24px 30px;
}

.tech-command-copy > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2f65ee;
  font-size: 12px;
  font-weight: 700;
}

.tech-command-copy h1 {
  max-width: 650px;
  margin: 10px 0 0;
  color: #14213b;
  font-size: 30px;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.tech-command-copy > p {
  max-width: 560px;
  margin: 10px 0 0;
  color: #6e7d93;
  font-size: 13px;
  line-height: 1.6;
}

.tech-wb a.tech-history {
  position: absolute;
  top: 16px;
  right: 17px;
  z-index: 3;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  border: 1px solid #0946ff;
  border-radius: 10px;
  background: #fff;
  padding: 0 11px;
  color: #0946ff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 720;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.tech-wb a.tech-history:hover,
.tech-wb a.tech-history:focus-visible {
  transform: translateY(-2px);
  border-color: #0839cc;
  background: #edf3ff;
  color: #0839cc;
  box-shadow: none;
  outline: 0;
}

.tech-wb a.tech-history .lucide:last-child {
  width: 14px;
  height: 14px;
  color: currentColor;
}

.tech-writing-section {
  margin-top: 22px;
}

.tech-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 4px 14px;
}

.tech-section-heading h2 {
  margin: 0;
  color: #17233d;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

.tech-writing-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 186px;
  align-items: flex-start;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 20px;
  background: linear-gradient(114deg, #d7f5e9 61.54%, #ffffff 100%);
  padding: 20px 22px 18px;
  text-align: left;
  box-shadow:
    0 12px 30px rgb(48 66 113 / 6%),
    inset 0 1px 0 rgb(255 255 255 / 86%);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.tech-writing-card::after {
  position: absolute;
  right: -40px;
  bottom: -62px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgb(255 255 255 / 46%);
  box-shadow: -32px -20px 64px rgb(83 104 217 / 7.5%);
  content: "";
  pointer-events: none;
}

/* 卡1：绿（评分点） */
.tech-writing-card-1 {
  background: linear-gradient(114deg, #d7f5e9 61.54%, #ffffff 100%);
}

/* 卡2：蓝（目录） */
.tech-writing-card-2 {
  background: linear-gradient(114deg, #e0f1ff 37.85%, #eef7ff 64.42%, #ffffff 100%);
}

/* 卡3：紫（专项） */
.tech-writing-card-3 {
  background: linear-gradient(124deg, #e5e0fe 43.24%, #f6f6ff 69.54%, #ffffff 100%);
}

.tech-writing-card:hover,
.tech-writing-card:focus-visible {
  transform: translateY(-4px);
  box-shadow:
    0 19px 38px rgb(42 61 104 / 11%),
    inset 0 1px 0 rgb(255 255 255 / 92%);
  outline: 0;
}

.tech-writing-card-1:hover,
.tech-writing-card-1:focus-visible {
  border-color: transparent;
}

.tech-writing-card-2:hover,
.tech-writing-card-2:focus-visible {
  border-color: transparent;
}

.tech-writing-card-3:hover,
.tech-writing-card-3:focus-visible {
  border-color: transparent;
}

.tech-writing-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 20px;
  background: radial-gradient(
    circle,
    rgb(255 255 255 / 90%) 0%,
    rgb(255 255 255 / 48%) 48%,
    transparent 72%
  );
}

.tech-writing-icon img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: saturate(1.14) contrast(1.1)
    drop-shadow(0 11px 13px rgb(57 78 133 / 14%));
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tech-writing-card:hover .tech-writing-icon img,
.tech-writing-card:focus-visible .tech-writing-icon img {
  transform: translateY(-2px) scale(1.055);
}

.tech-recommended {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  border-radius: 999px;
  background: #0f8f6d;
  padding: 4px 9px;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
  box-shadow: 0 7px 16px rgb(15 143 109 / 22%);
}

.tech-writing-copy {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.tech-writing-copy strong {
  display: block;
  color: #18263f;
  font-size: 18px;
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.tech-writing-copy p {
  margin: 7px 0 0;
  color: #75839a;
  font-size: 12px;
  line-height: 1.58;
}

.tech-writing-action {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #13896a;
  font-size: 12px;
  font-weight: 740;
}

.tech-writing-card-2 .tech-writing-action {
  color: #3d62dc;
}

.tech-writing-card-3 .tech-writing-action {
  color: #7454d7;
}

.tech-tools-section {
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tech-tool-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.tech-tool-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 148px;
  align-items: flex-start;
  flex-direction: column;
  border: 1px solid #e4e9f2;
  border-radius: 16px;
  background: #fff;
  padding: 16px 15px 14px;
  text-align: left;
  box-shadow: 0 8px 22px rgb(39 55 92 / 4%);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.tech-tool-card:hover,
.tech-tool-card:focus-visible {
  transform: translateY(-3px);
  border-color: #bdcaeb;
  box-shadow: 0 14px 28px rgb(39 57 98 / 8.5%);
  outline: 0;
}

.tech-tool-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  margin: -2px 0 0;
  border-radius: 12px;
  background: radial-gradient(
    circle,
    rgb(245 248 255 / 95%),
    rgb(245 248 255 / 36%) 58%,
    transparent 76%
  );
}

.tech-tool-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: saturate(1.14) contrast(1.1)
    drop-shadow(0 5px 7px rgb(50 76 132 / 10%));
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tech-tool-card:hover .tech-tool-icon img,
.tech-tool-card:focus-visible .tech-tool-icon img {
  transform: translateY(-2px) scale(1.05);
}

.tech-tool-card:nth-child(2) .tech-tool-icon {
  background: radial-gradient(
    circle,
    rgb(246 245 255 / 96%),
    rgb(246 245 255 / 36%) 58%,
    transparent 76%
  );
}

.tech-tool-card:nth-child(3) .tech-tool-icon {
  background: radial-gradient(
    circle,
    rgb(243 249 255 / 96%),
    rgb(243 249 255 / 36%) 58%,
    transparent 76%
  );
}

.tech-tool-card:nth-child(4) .tech-tool-icon {
  background: radial-gradient(
    circle,
    rgb(241 251 247 / 96%),
    rgb(241 251 247 / 36%) 58%,
    transparent 76%
  );
}

.tech-tool-copy {
  min-width: 0;
  margin-top: 4px;
}

.tech-tool-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.tech-tool-title-line strong {
  color: #25324a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.tech-tool-copy small {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: #7e8a9e;
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tech-tool-arrow {
  position: absolute;
  right: 13px;
  bottom: 12px;
  color: #8796ab;
}

.tech-tool-card.is-coming {
  border-style: dashed;
  background: #f7f8fb;
  cursor: default;
  box-shadow: none;
}

.tech-tool-card.is-coming:hover,
.tech-tool-card.is-coming:focus-visible {
  transform: none;
  border-color: #e0e6f0;
  box-shadow: none;
}

.tech-tool-card.is-coming .tech-tool-icon {
  background: #edf0f5;
}

.tech-tool-card.is-coming .tech-tool-icon img {
  filter: grayscale(1) opacity(0.68)
    drop-shadow(0 7px 9px rgb(70 80 98 / 8%));
}

.tech-tool-card.is-coming:hover .tech-tool-icon img {
  transform: none;
}

.tech-tool-card.is-coming .tech-tool-title-line strong {
  color: #5f6b7e;
}

.tech-tool-card.is-coming .tech-tool-copy small {
  color: #99a2b0;
}

.tech-tool-coming {
  border-radius: 999px;
  background: #edf0f5;
  padding: 3px 6px;
  color: #78869b;
  font-size: 9px;
  font-style: normal;
  font-weight: 740;
}

.tech-coming-hint {
  position: absolute;
  right: 13px;
  bottom: 12px;
  color: #929dad;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .tech-command-copy {
    width: 58%;
  }

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

@media (max-width: 900px) {
  .tech-wb {
    padding: 14px 4px 28px;
  }

  .tech-command-stage {
    height: 210px;
  }

  .tech-command-stage > img {
    opacity: 0.42;
    object-position: 72% center;
  }

  .tech-command-copy {
    width: 72%;
    padding: 20px;
  }

  .tech-command-copy h1 {
    font-size: 27px;
  }

  .tech-writing-grid {
    gap: 10px;
  }

  .tech-writing-card {
    min-height: 190px;
    padding: 17px;
  }

  .tech-writing-copy strong {
    font-size: 16px;
  }

  .tech-writing-action {
    right: 16px;
    bottom: 15px;
  }

  .tech-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .tech-command-stage {
    height: 234px;
  }

  .tech-command-stage > img {
    opacity: 0.22;
    object-position: 72% center;
  }

  .tech-command-stage::after {
    background: rgb(249 252 255 / 84%);
  }

  .tech-command-copy {
    width: 100%;
    padding: 19px 17px;
  }

  .tech-command-copy h1 {
    max-width: 90%;
    font-size: 23px;
  }

  .tech-command-copy > p {
    max-width: 88%;
    font-size: 11px;
  }

  .tech-history {
    display: none;
  }

  .tech-writing-grid,
  .tech-tool-grid {
    grid-template-columns: 1fr;
  }

  .tech-writing-card {
    min-height: 176px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech-writing-card,
  .tech-tool-card,
  .tech-history,
  .tech-writing-icon img,
  .tech-tool-icon img {
    transition: none;
  }

  .tech-writing-card:hover,
  .tech-tool-card:hover,
  .tech-history:hover {
    transform: none;
  }
}
