:root {
  --ink: #f4f8ff;
  --muted: rgba(234, 242, 255, .72);
  --soft: rgba(234, 242, 255, .5);
  --line: rgba(234, 242, 255, .11);
  --blue: #61a8ff;
  --orange: #ff8a2a;
  --page: #030914;
  --panel: rgba(13, 25, 42, .72);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 320;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 78% 0%, rgba(54, 133, 240, .16), transparent 36rem),
    linear-gradient(180deg, #06101e 0%, #030914 34%, #050914 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 112px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(3, 9, 20, .4);
  color: rgba(244, 248, 255, .92);
}

.nav {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-mark {
  width: 220px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: saturate(1.08) contrast(1.06) brightness(1.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  color: rgba(234, 242, 255, .72);
  font-size: 17px;
  font-weight: 360;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  transition: color 600ms var(--ease), transform 600ms var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 138, 42, .96);
  opacity: 0;
  transform: translateX(-50%) scaleX(.35);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease), width 600ms var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
  transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 28px;
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: rgba(255, 138, 42, .96);
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  font-size: 15px;
  font-weight: 430;
  cursor: pointer;
  transition: transform 700ms var(--ease), box-shadow 700ms var(--ease);
  box-shadow: 0 14px 42px rgba(255, 138, 42, .18);
}

.nav-cta:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 58px rgba(255, 138, 42, .25);
}

.page-hero {
  min-height: 62vh;
  padding: 190px 0 96px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 9, 20, .94) 0%, rgba(3, 9, 20, .72) 48%, rgba(3, 9, 20, .92) 100%),
    url("../images/bg3.png") center / cover no-repeat;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(97, 168, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 168, 255, .06) 1px, transparent 1px);
  background-size: 140px 140px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 88%);
}

.page-hero-inner,
.section,
.footer-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  margin: 0 0 28px;
  color: rgba(154, 205, 255, .82);
  font-size: 13px;
  font-weight: 360;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: 64px;
  line-height: 1.16;
  font-weight: 300;
}

.page-hero p {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 2;
}

.section {
  padding: 108px 0;
}

.section-title {
  margin: 0;
  max-width: 860px;
  font-size: 48px;
  line-height: 1.24;
  font-weight: 300;
}

.section-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 2;
}

.grid,
.article-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.card,
.article-card,
.product-card {
  min-height: 260px;
  border: 1px solid rgba(234, 242, 255, .12);
  background: linear-gradient(180deg, rgba(15, 28, 47, .78), rgba(8, 17, 31, .78));
  overflow: hidden;
  transition: transform 600ms var(--ease), border-color 600ms var(--ease), background 600ms var(--ease);
}

.card:hover,
.article-card:hover,
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(97, 168, 255, .42);
  background: linear-gradient(180deg, rgba(18, 35, 58, .88), rgba(8, 17, 31, .84));
}

.card {
  padding: 34px;
}

.card span,
.article-meta,
.content-meta {
  color: rgba(154, 205, 255, .78);
  font-size: 13px;
  font-weight: 360;
}

.card h2,
.article-card h2,
.product-card h2 {
  margin: 18px 0 14px;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 320;
}

.card p,
.article-card p,
.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.article-card,
.product-card {
  display: flex;
  flex-direction: column;
}

.card-media {
  height: 230px;
  background: #06101e;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .84;
  transition: transform 900ms var(--ease), opacity 900ms var(--ease);
}

.article-card:hover .card-media img,
.product-card:hover .card-media img {
  transform: scale(1.04);
  opacity: .96;
}

.card-body {
  padding: 30px;
  flex: 1;
}

.text-link {
  display: inline-flex;
  margin-top: 26px;
  color: #fff;
  font-size: 14px;
  font-weight: 430;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 64px;
  align-items: start;
}

.content-main {
  color: rgba(234, 242, 255, .82);
  font-size: 18px;
  font-weight: 300;
  line-height: 2.05;
}

.content-main h2,
.content-main h3 {
  color: #fff;
  font-weight: 320;
  line-height: 1.35;
}

.content-main img {
  margin: 34px 0;
  border: 1px solid rgba(234, 242, 255, .12);
}

.content-aside {
  position: sticky;
  top: 136px;
  padding: 28px;
  border: 1px solid rgba(234, 242, 255, .12);
  background: rgba(12, 25, 44, .66);
}

.content-aside h3 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 320;
}

.side-list {
  display: grid;
  gap: 16px;
}

.side-list a {
  color: var(--muted);
  line-height: 1.7;
  transition: color 260ms var(--ease);
}

.side-list a:hover {
  color: #fff;
}

.pagination,
.pagebar {
  margin-top: 48px;
  color: var(--muted);
}

.pagebar a,
.pagebar span,
.paging a,
.paging span,
.page-num,
.page-num-current,
.page-index,
.page-pre,
.page-next,
.page-last {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin: 0 5px 8px 0;
  padding: 0 12px;
  border: 1px solid rgba(234, 242, 255, .12);
  color: rgba(234, 242, 255, .76);
}

.page-num-current {
  border-color: rgba(255, 138, 42, .92);
  color: #fff;
}

.form-panel {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 44px;
  padding: 44px;
  border: 1px solid rgba(234, 242, 255, .12);
  background:
    radial-gradient(circle at 100% 0%, rgba(97, 168, 255, .14), transparent 24rem),
    rgba(10, 21, 37, .74);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid rgba(234, 242, 255, .14);
  background: rgba(3, 9, 20, .46);
  color: #fff;
  padding: 15px 16px;
  outline: none;
}

.form-grid textarea {
  min-height: 150px;
  resize: vertical;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 12px;
}

.code-row img {
  width: 118px;
  height: 50px;
  object-fit: cover;
  cursor: pointer;
}

.search-form {
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-top: 36px;
}

.search-form input {
  min-height: 52px;
  border: 1px solid rgba(234, 242, 255, .14);
  background: rgba(3, 9, 20, .52);
  color: #fff;
  padding: 0 18px;
  outline: none;
}

.footer {
  padding: 76px 0 36px;
  background: linear-gradient(180deg, rgba(3, 9, 20, 0) 0%, #02050b 18%), #02050b;
  border-top: 1px solid rgba(234, 242, 255, .08);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(300px, 1.25fr) repeat(4, minmax(120px, 1fr));
  gap: 48px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 360;
  line-height: 1.45;
}

.footer-brand p {
  margin: 0 0 30px;
  color: rgba(234, 242, 255, .58);
  font-size: 14px;
  line-height: 1.9;
}

.footer-language {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(244, 248, 255, .78);
  font-size: 14px;
}

.footer-language svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer-group h3 {
  margin: 0 0 22px;
  color: rgba(169, 207, 255, .82);
  font-size: 15px;
  font-weight: 340;
}

.footer-links {
  display: grid;
  gap: 15px;
}

.footer-links a {
  width: fit-content;
  color: rgba(244, 248, 255, .88);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  transition: color 260ms var(--ease), transform 260ms var(--ease);
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(234, 242, 255, .08);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(234, 242, 255, .46);
  font-size: 13px;
  line-height: 1.8;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

.js .fade-in {
  opacity: 0;
  transform: translateY(18px);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .page-hero h1 {
    font-size: 42px;
    line-height: 1.22;
  }

  .grid,
  .article-grid,
  .product-grid,
  .content-layout,
  .form-panel {
    grid-template-columns: 1fr;
  }

  .content-aside {
    position: static;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .nav,
  .page-hero-inner,
  .section,
  .footer-inner {
    width: min(100% - 32px, var(--max));
  }

  .site-header {
    height: 96px;
  }

  .brand-mark {
    width: 158px;
    height: 38px;
  }

  .nav-cta {
    display: none;
  }

  .page-hero {
    min-height: 54vh;
    padding: 154px 0 72px;
  }

  .page-hero h1,
  .section-title {
    font-size: 32px;
    line-height: 1.34;
  }

  .page-hero p,
  .section-copy,
  .content-main {
    font-size: 15px;
    line-height: 1.86;
  }

  .breadcrumb {
    font-size: 12px;
    margin-bottom: 18px;
  }

  .card h2,
  .article-card h2,
  .product-card h2 {
    font-size: 23px;
  }

  .card p,
  .article-card p,
  .product-card p {
    font-size: 14px;
    line-height: 1.82;
  }

  .content-aside h3 {
    font-size: 20px;
  }

  .footer-brand strong {
    font-size: 17px;
  }

  .footer-brand p,
  .footer-links a {
    font-size: 14px;
  }

  .section {
    padding: 76px 0;
  }

  .search-form,
  .code-row {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 58px 0 30px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-bottom {
    margin-top: 42px;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .page-hero {
    min-height: 48vh;
    padding: 136px 0 58px;
  }

  .page-hero h1,
  .section-title {
    font-size: 29px;
  }

  .page-hero p,
  .section-copy,
  .content-main {
    font-size: 14px;
    line-height: 1.82;
  }

  .card,
  .card-body {
    padding: 24px;
  }

  .card h2,
  .article-card h2,
  .product-card h2 {
    font-size: 21px;
  }

  .form-panel {
    padding: 28px 20px;
  }

  .btn {
    font-size: 13px;
    padding: 12px 16px;
  }
}
