.tech-page {
  color: #071932;
  background: #f4f7fc;
}

.tech-page .container {
  max-width: 1200px !important;
}

/* Hero — 原版 banner 背景 */
.tech-hero {
  position: relative;
  min-height: 280px;
}

.tech-hero__bg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  object-fit: cover;
}

.tech-hero__content {
  width: clamp(260px, 34%, 460px);
  top: 54%;
  left: clamp(5%, 10vw, 12%);
  transform: translateY(-50%);
  z-index: 1;
  text-align: left;
  padding-right: 12px;
}

.tech-hero__title-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.15));
}

.tech-hero .carousel-txt {
  margin: 0;
  font-size: clamp(16px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Section */
.tech-section {
  padding: 56px 16px 24px;
}

.tech-section-title {
  margin: 0 0 28px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 900;
  color: #071932;
  text-align: center;
}

.tech-section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #0e7aff, #15c4ff);
}

/* Contact grid */
.tech-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.tech-contact-card {
  width: 100%;
  border: 1px solid rgba(14, 122, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(14, 74, 142, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tech-contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(14, 122, 255, 0.14);
}

.tech-contact-card__img img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tech-contact-card__body {
  padding: 16px 14px 20px;
}

.tech-page .project-text {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #15367a;
}

.tech-page .carousel-text {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.65;
  color: #617089;
}

/* WeChat */
.tech-wechat-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(14, 122, 255, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(14, 74, 142, 0.08);
}

.tech-wechat-panel__qr {
  flex: 0 0 160px;
  width: 160px;
}

.tech-wechat-panel__qr img {
  width: 100%;
  border-radius: 12px;
}

.tech-wechat-panel__text {
  flex: 1;
  min-width: 240px;
}

/* Media */
.tech-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.tech-media-card {
  padding: 24px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(14, 122, 255, 0.1);
  box-shadow: 0 8px 24px rgba(14, 74, 142, 0.06);
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tech-media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(14, 122, 255, 0.12);
}

.tech-media-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.tech-media-card--wx .tech-media-card__badge {
  background: linear-gradient(135deg, #2dc100, #1aad19);
}

.tech-media-card--qq .tech-media-card__badge {
  background: linear-gradient(135deg, #4facfe, #00c6fb);
}

.tech-media-card--bili .tech-media-card__badge {
  background: linear-gradient(135deg, #fb7299, #e85d8a);
}

.tech-media-card--csdn .tech-media-card__badge {
  background: linear-gradient(135deg, #fc5531, #e04520);
}

.tech-media-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #071932;
}

.tech-media-card .media-color {
  margin: 0 0 16px;
  font-size: 13px;
  color: #617089 !important;
}

.tech-media-card__qr {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  border-radius: 10px;
  object-fit: cover;
}

.tech-media-card__hint {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #15367a;
}

.tech-media-card__name {
  margin: 0;
  font-size: 13px;
  color: #617089;
}

.tech-media-card__name a {
  color: #0e7aff;
}

/* Link cards (GIT / Video) */
.tech-link-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.tech-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 320px;
  min-height: 160px;
  padding: 28px 24px;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(14, 74, 142, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tech-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(14, 122, 255, 0.2);
  color: #fff;
}

.tech-link-card--gitee {
  background: linear-gradient(135deg, #c71d23, #e84a3f);
}

.tech-link-card--github {
  background: linear-gradient(135deg, #24292e, #444d56);
}

.tech-link-card h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  text-transform: capitalize;
}

.tech-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.tech-video-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 172px;
  height: 100%;
  padding: 28px 20px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1px solid rgba(14, 122, 255, 0.12);
  box-shadow: 0 8px 24px rgba(14, 74, 142, 0.06);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.tech-video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 122, 255, 0.28);
  box-shadow: 0 14px 32px rgba(14, 122, 255, 0.14);
  color: inherit;
}

.tech-video-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e7aff, #15c4ff);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(14, 122, 255, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tech-video-card:hover .tech-video-card__icon {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(14, 122, 255, 0.36);
}

.tech-video-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 52px;
}

.tech-video-card h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: #071932;
  transition: color 0.2s ease;
}

.tech-video-card:hover h4 {
  color: #0e7aff;
}

.tech-video-card__sub {
  margin: 0;
  min-height: 20px;
  font-size: 14px;
  line-height: 1.4;
  color: #617089;
}

.tech-video-card__sub--empty {
  visibility: hidden;
}

/* Doc cards */
.tech-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.tech-doc-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(14, 122, 255, 0.1);
  border-top: 4px solid #0e7aff;
  box-shadow: 0 8px 24px rgba(14, 74, 142, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tech-doc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(14, 122, 255, 0.12);
}

.tech-doc-card:nth-child(2) {
  border-top-color: #15c4ff;
}

.tech-doc-card:nth-child(3) {
  border-top-color: #5d8eef;
}

.tech-doc-card:nth-child(4) {
  border-top-color: #3d5f9a;
}

.tech-doc-card h5 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
  color: #15367a;
}

.tech-doc-card p {
  flex: 1;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #4a5d75;
  font-weight: 400 !important;
}

/* Buttons */
.tech-page .tech-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 20px !important;
  border: none !important;
  border-radius: 999px !important;
  color: #0e7aff !important;
  font-size: 14px;
  font-weight: 700;
  background: #eef4ff;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tech-link-card .tech-button {
  align-self: flex-start;
  color: #0e7aff !important;
  background: #fff;
}

.tech-page .tech-button:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #0e7aff, #15c4ff);
  box-shadow: 0 8px 20px rgba(14, 122, 255, 0.28);
}

.tech-link-card .tech-button:hover {
  color: #0e7aff !important;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

@media (max-width: 991px) {
  .tech-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tech-hero__content {
    width: 88%;
    left: 6%;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
  }

  .tech-section {
    padding-top: 40px;
  }

  .tech-contact-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .tech-wechat-panel {
    padding: 20px;
  }

  .tech-wechat-panel__qr {
    margin: 0 auto;
  }

  .tech-video-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}
