*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --nav-height: 64px;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --text: #0e0d0d;
  --text-dark: #131212;
  --text-muted: #666;
  --accent: #405ef4;
  --tag-bg: #f7f9ff;
  --tag-orange-bg: #fef7f4;
  --tag-orange: #ee6511;
  --url-red: #d14141;
  --url-box-bg: #fff3f3;
  --card-shadow: 0 0 18px #dbdbdb;
  --card-border-gradient: linear-gradient(-32deg, #3750e7, #1ea5e4, #2e83ed, #2fd6dc);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --fs-nav-brand: 20px;
  --fs-nav: 15px;
  --fs-hero-title: clamp(24px, 2.4vw, 42px);
  --fs-hero-desc: clamp(14px, 1.1vw, 20px);
  --fs-section-title: clamp(24px, 2.2vw, 36px);
  --fs-card-title: 24px;
  --fs-card-title-md: 20px;
  --fs-body-lg: 16px;
  --fs-body: 15px;
  --fs-small: 14px;
  --fs-xs: 13px;
  --fs-footer: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ========== 导航栏 ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  max-width: 1920px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-brand__logos {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand__logo1 {
  height: 26px;
  width: auto;
}

.nav-brand__logo2 {
  height: 26px;
  width: auto;
}

.nav-brand__name {
  font-size: var(--fs-nav-brand);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-menu a {
  font-size: var(--fs-nav);
  color: var(--text);
  white-space: nowrap;
  transition: color 0.2s ease;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--accent);
}

.nav-menu a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========== Hero 首屏 ========== */
.hero {
  position: relative;
  min-height: 740px;
  padding-top: var(--nav-height);
  background-color: #fff;
  overflow: hidden;
}

/* banner 独立一层，横向铺满整个视口 */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/banner.png") center center / cover no-repeat;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 101px 40px 80px;
}

.hero__qr {
  width: 260px;
  max-width: 100%;
  margin-bottom: 40px;
}

.hero__qr img {
  width: 100%;
  height: auto;
}

.hero__title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 40px;
  max-width: none;
  white-space: nowrap;
}

.hero__title-accent {
  color: var(--accent);
}

.hero__desc {
  font-size: 20px;
  line-height: 1.8;
  max-width: 22em;
  color: #131212;
}

.hero__accent {
  width: 50px;
  height: 6px;
  margin-top: 48px;
  background: var(--accent);
}

/* ========== 版本入口 ========== */
.version-entry {
  padding: 55px 0 0;
  background: #fff;
}

.version-entry__inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 74px;
}

.version-entry__title {
  font-size: var(--fs-section-title);
  font-weight: 700;
  line-height: 1;
  color: var(--text-dark);
  text-align: center;
}

.version-entry__down {
  width: 100px;
  height: 100px;
  margin: 10px auto 30px;
}

.version-entry__cards {
  display: grid;
  /*grid-template-columns: repeat(4, minmax(0, 1fr));*/
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(16px, 2vw, 44px);
}

.version-card {
  position: relative;
  width: 100%;
  min-height: 480px;
  padding: 55px 36px 36px;
  border: 2px solid transparent;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.version-card:hover {
  background-image: linear-gradient(#fff, #fff), var(--card-border-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.version-card__title {
  font-size: var(--fs-card-title);
  font-weight: 700;
  line-height: 1;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.version-card__desc {
  font-size: var(--fs-body-lg);
  line-height: 2;
  color: var(--text-muted);
  flex: 1;
}

.version-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 75px;
}

.version-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #9eb1cd;
  border-radius: 8px;
  background: var(--tag-bg);
  font-size: var(--fs-small);
  line-height: 1;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.version-card__tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.version-card__tags--orange .version-card__tag {
  background: var(--tag-orange-bg);
  color: var(--tag-orange);
  border-color: #d66b5d;
}

.version-card__tags--orange .version-card__tag:hover {
   color: #fff;
   background: #ff591d;
   border-color: #ff591d;
}

.version-card__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 336px;
  max-width: 100%;
  height: 52px;
  margin-top: 21px;
  border-radius: 15px;
  background: linear-gradient(-27deg, #879bff 0%, #7cc3f4 100%);
  color: #fff;
  font-size: var(--fs-body-lg);
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.version-card:hover .version-card__btn,
.version-card__btn:hover {
  background: linear-gradient(-87deg, #405ef4 0%, #19b6ff 99%);
}

.version-card__btn:hover {
  transform: translateY(-1px);
}

.version-card__btn-icon {
  position: absolute;
  right: 57px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 15px;
  flex-shrink: 0;
  pointer-events: none;
}

.version-card__url-box {
  margin-top: 21px;
  padding: 22px 22px 24px;
  border: 1px solid #ec7d7d;
  border-radius: 15px;
  background: var(--url-box-bg);
}

.version-card__url-label {
  font-size: var(--fs-small);
  line-height: 1;
  color: var(--url-red);
  margin-bottom: 21px;
}

.version-card__url {
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--url-red);
  word-break: break-all;
}

.version-card__url:hover {
  text-decoration: underline;
}

.version-card--enterprise .version-card__tags {
  margin-top: 56px;
}

.version-card--enterprise .version-card__title-wrap {
  position: relative;
  align-self: flex-start;
  margin-bottom: 29px;
}

.version-card--enterprise .version-card__title {
  margin-bottom: 0;
}

.version-card__badge {
  position: absolute;
  width: 83px;
  height: 47px;
  pointer-events: none;
}

.version-card--enterprise .version-card__badge {
  top: -37px;
  left: calc(100% - 7px);
}

.version-card__badge img {
  display: block;
  width: 100%;
  height: 100%;
}

.version-card__badge span {
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  line-height: 1;
  color: #fff;
}

/* ========== 开源社区版 · 重点速览 ========== */
.highlights {
  padding: 81px 0 100px;
  background: #fff;
}

.highlights__inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 74px;
}

.highlights__title {
  font-size: var(--fs-section-title);
  font-weight: 700;
  line-height: 1;
  color: var(--text-dark);
  text-align: center;
}

.highlights__down {
  width: 100px;
  height: 100px;
  margin: 10px auto 30px;
}

.highlights__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  gap: clamp(16px, 2vw, 44px);
}

.highlight-card {
  width: 100%;
  min-height: 246px;
  padding: 43px 35px 40px;
  border: 1px solid #e5e5e5;
  border-radius: 30px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.highlight-card:hover {
  box-shadow: 0 4px 20px rgba(64, 94, 244, 0.15);
}

.highlight-card__icon {
  display: block;
  align-self: flex-start;
  flex-shrink: 0;
  width: auto;
  height: 31px;
  max-width: none;
  margin-bottom: 22px;
}

.highlight-card__title {
  font-size: var(--fs-card-title-md);
  font-weight: 400;
  line-height: 1;
  color: var(--text-dark);
  margin-bottom: 25px;
}

.highlight-card__desc {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text-muted);
}

/* ========== 页脚 ========== */
.site-footer {
  height: 76px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.site-footer__text {
  font-size: var(--fs-footer);
  font-weight: 400;
  line-height: 1;
  color: #aaa;
  text-align: center;
}

.m-r-10{
  margin-right: 10px;
}

/* ========== 响应式 ========== */

@media (min-width:1200px) and (max-width:1600px) {
  .version-card{
    min-height: 374px;
    padding: 36px 24px 28px;
    border-radius: 20px;
  }

  .version-card__title {
    font-size:22px;
  }

  .version-card--enterprise .version-card__badge {
    top: -26px;
    left: calc(100% - -7px);
  }

  .version-card__desc {
    font-size: 14px;
    line-height: 1.8;
  }


  .highlight-card {
    min-height: 234px;
    padding: 32px 28px 28px;
    border-radius: 20px;
  }

  .highlight-card__desc{
    font-size: 14px;
    line-height: 1.8;
  }

  .highlight-card__title{
    font-size: 18px;
  }

  .highlight-card__icon{
    height: 26px;
    margin-bottom: 24px;
  }

  .version-card__url-box{
    padding: 22px 8px 24px;
  }
}

@media (max-width: 1100px) {
  .nav {
    padding: 0 20px;
    gap: 24px;
  }

  .nav-menu {
    gap: 28px;
  }

  .nav-menu a {
    font-size: 14px;
  }

  .version-entry__inner {
    padding: 0 36px;
  }

  .version-entry__down {
    margin: 0px auto 0px;
    width: 70px;
    height: 70px;
  }

  .highlights__inner {
    padding: 0 36px;
  }

  .highlights__down {
    margin: 0px auto 0px;
    width: 70px;
    height: 70px;
  }

  /*两个模块*/
  .version-card{
    min-height: 380px;
    padding: 36px 28px 28px;
    border-radius: 20px;
  }

  .version-card__title {
    font-size:22px;
  }

  .version-card--enterprise .version-card__badge {
    top: -22px;
    left: calc(100% - -7px);
  }

  .version-card__desc {
    font-size: 14px;
    line-height: 1.8;
  }

  .highlight-top{
    display: flex;
    align-items: center;
    margin-bottom: 25px;
  }

  .highlight-card {
    min-height: 170px;
    padding: 32px 28px 28px;
    border-radius: 20px;
  }

  .highlight-card__desc{
    font-size: 14px;
    line-height: 1.8;
  }

  .highlight-card__title{
    font-size: 18px;
    margin-bottom: 0px;
  }

  .highlight-card__icon{
    height: 26px;
    margin-bottom: 0px;
    margin-right: 16px;
  }

  .site-footer{
    padding: 0 20px;
  }

  .version-card__url-box{
    padding: 22px 18px 24px;
  }


 
}

@media (max-width: 920px) {
  .hero__desc {
    font-size: 15px;
    color: #444;
  }

  .hero__accent{
    width: 33px;
    margin-top: 40px;
    border-radius: 10px;
  }

  .version-entry__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }

  .highlights__cards {
    grid-template-columns: minmax(0, 408px);
  }

  .highlight-card {
    width: 100%;
    max-width: 408px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .version-entry__cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    display: block;
    padding: 14px 24px;
    font-size: 14px;
  }

  .nav-menu a.is-active::after {
    display: none;
  }

  .nav-brand__logo2 {
    display: none;
  }

  .hero__inner {
    padding: 40px 24px 30px;
  }

  .hero__title {
    font-size: clamp(24px, 6.5vw, 42px);
    white-space: nowrap;
  }

  .hero__qr {
    width: 240px;
    margin-bottom: 40px;
  }

  .hero {
    min-height: 515px;
  }

  .version-entry {
    padding-top: 30px;
  }

  .version-card__title {
    font-size: 22px;
  }

  .version-card__desc,
  .version-card__btn,
  .version-card__tag,
  .version-card__url,
  .version-card__url-label {
    font-size: 15px;
  }

  .version-card__url-label {
    margin-bottom: 6px;
  }

  .highlights {
    padding: 40px 0 40px;
  }

  .highlight-card__title {
    font-size: 18px;
  }

  .highlight-card__desc {
    font-size: 15px;
  }

  .site-footer__text {
    font-size: 13px;
  }
}
