/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #17161d;
  --color-red: #e62e2e;
  --color-white: #ffffff;
  --color-white-80: rgba(255, 255, 255, 0.8);
  --color-white-40: rgba(255, 255, 255, 0.4);
  --color-white-12: rgba(255, 255, 255, 0.12);
  --color-white-06: rgba(255, 255, 255, 0.06);
  --font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --content-width: 1080px;
  --page-width: 1440px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 65px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background-color: var(--bg-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.nav-container {
  max-width: var(--page-width);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 28px;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}

.nav-link {
  font-size: 14px;
  line-height: 20px;
  color: var(--color-white);
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.8;
}

.nav-actions {
  display: flex;
  align-items: center;
  margin-left: 40px;
}

.btn-join-nav {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--color-red);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--color-white);
  transition: opacity 0.2s;
}

.btn-join-nav:hover {
  opacity: 0.9;
}

/* 顶部横幅 */
.top-banner {
  position: relative;
  top: 65px;
  left: 0;
  right: 0;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  overflow: hidden;
  background-image: url('assets/images/banner-bg.png');
  background-size: cover;
  background-position: center;
}

.top-banner::before {
  display: none;
}

.banner-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
}

.banner-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--color-white);
  text-shadow: 0 2px 0 #e62e2e;
}

.banner-btn {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-red);
  background: var(--color-white);
  box-shadow: 0 2px 0 rgba(69, 31, 13, 0.6);
  transition: transform 0.2s;
}

.banner-btn:hover {
  transform: scale(1.05);
}

/* Hero 区域 */
.hero {
  position: relative;
  padding-top: 131px;
  height: 848px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--color-white-40);
  border-radius: 20px;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow: 0 8px 32px rgba(191, 165, 123, 0.08), inset 0 1px 0 #c12c2c;
}

.badge-icon {
  width: 16px;
  height: 16px;
}

.badge-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-red);
  letter-spacing: -0.15px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.hero-title-sub {
  font-size: 60px;
  font-weight: 600;
  line-height: 1;
}

.hero-title-main {
  font-size: 70px;
  font-weight: 600;
  line-height: 1.2;
}

.hero-desc {
  font-size: 18px;
  line-height: 28px;
  color: var(--color-white);
  margin-top: 8px;
}

.btn-join-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 50px;
  background-color: var(--color-red);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
  box-shadow: 0 4px 6px rgba(255, 58, 51, 0.2);
  margin-top: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-join-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 58, 51, 0.3);
}

/* 通用 Section 样式 */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 60px;
  color: var(--color-white);
}

.section-desc {
  font-size: 18px;
  line-height: 29px;
  color: var(--color-white-80);
  letter-spacing: -0.44px;
  margin-top: 8px;
}

/* 产品中心 */
.products {
  padding: 40px 180px 80px;
  position: relative;
  background-image: url('assets/images/product-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card {
  padding: 38px 24px;
  border-radius: 16px;
  border: 1px solid var(--color-white-12);
  background: var(--color-white-06);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: transform 0.3s, border-color 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
}

.product-card.highlighted {
  background: var(--color-white-06);
  border-color: var(--color-white-12);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.product-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 1px solid rgba(233, 236, 240, 0.3);
  background: rgba(18, 18, 18, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.product-icon img {
  width: 36px;
  height: auto;
}

.product-name {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-white);
  margin-bottom: 12px;
}

.product-desc {
  font-size: 16px;
  line-height: 26px;
  color: var(--color-white-80);
  max-width: 300px;
}

/* 生态产品 */
.ecosystem {
  padding: 80px 0 0;
  position: relative;
}

.ecosystem .section-header {
  padding: 0 180px;
}

.ecosystem-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-top: 40px;
}

.ecosystem-visual::before {
  display: none;
}

.ecosystem-visual img {
  width: 100%;
  display: block;
}


/* 合伙人招募 + 三大优势共享背景 */
.partner-section {
  position: relative;
}

.partner-section-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/market-bg.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* 合伙人招募 */
.partner {
  padding: 70px 0;
  position: relative;
  z-index: 1;
}

.partner-bg {
  display: none;
}

.partner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 990px;
  margin: 0 auto;
  padding: 0 20px;
}

.partner-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 60px 0 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-value {
  font-size: 44px;
  font-weight: 500;
  line-height: 60px;
  color: var(--color-red);
}

.stat-label {
  font-size: 16px;
  line-height: 25.6px;
  color: var(--color-white);
}

.btn-join-partner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 32px;
  background: var(--color-white);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-red);
  box-shadow: 0 4px 6px rgba(230, 46, 46, 0.2);
  transition: transform 0.2s;
}

.btn-join-partner:hover {
  transform: translateY(-2px);
}

/* 三大优势 */
.advantages {
  padding: 0 180px 80px;
  position: relative;
  z-index: 1;
}

.advantages-grid {
  display: grid;
  grid-template-columns: 1fr 380px 1fr;
  gap: 18px;
  align-items: center;
}

.advantage-card {
  padding: 31px 32px;
  border-radius: 16px;
  border: 1px solid var(--color-white-12);
  background: var(--color-white-06);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  min-height: 273px;
}

.advantage-card.center-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  min-height: 297px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.advantage-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 31.2px;
  color: var(--color-white);
  text-align: center;
  margin-bottom: 24px;
}

.advantage-desc {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-white-80);
  text-align: center;
  margin-bottom: 24px;
}

.advantage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border: 0.5px solid var(--color-white);
  border-radius: 9999px;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-white);
  background: transparent;
}

.btn-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 332px;
  height: 50px;
  background-color: var(--color-red);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
  box-shadow: 0 4px 6px rgba(139, 69, 19, 0.2);
  margin-top: auto;
  transition: transform 0.2s;
}

.btn-consult:hover {
  transform: translateY(-2px);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 36px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.timeline-day {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
  min-width: 40px;
}

.timeline-text {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-white-80);
}

/* 关于我们 + 战略合作伙伴共享背景 */
.about-section {
  position: relative;
}

.about-section-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/about-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* 关于我们 */
.about {
  padding: 80px 180px;
  position: relative;
  z-index: 1;
}

.about .section-title {
  text-align: center;
  margin-bottom: 16px;
}

.about-desc {
  font-size: 18px;
  line-height: 29px;
  color: var(--color-white-80);
  text-align: center;
  letter-spacing: -0.44px;
  max-width: var(--content-width);
  margin: 0 auto 60px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.about-card {
  padding: 40px 24px;
  border-radius: 16px;
  border: 1px solid var(--color-white-12);
  background: var(--color-white-06);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 1px solid #e9ecf0;
  overflow: hidden;
  margin-bottom: 24px;
}

.about-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.about-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 12px;
}

.about-card-desc {
  font-size: 16px;
  line-height: 26px;
  color: var(--color-white-80);
  max-width: 210px;
}

/* 战略合作伙伴 */
.partners-section {
  padding: 40px 180px 60px;
  position: relative;
  z-index: 1;
}

.partners-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.partners-arrow {
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.partners-arrow:hover {
  opacity: 1;
}

.partners-arrow img {
  width: 100%;
  height: 100%;
}

.partners-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  letter-spacing: 1.2px;
  color: var(--color-white);
}

.partners-logos {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.partner-logo-item {
  width: 179px;
  height: 69px;
  background: var(--color-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  overflow: hidden;
}

.partner-logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 页脚 */
.footer {
  position: relative;
  padding: 60px 0 40px;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #181317;
}

.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/images/about-bg.png');
  background-size: cover;
  mix-blend-mode: multiply;
  opacity: 0.6;
}

.footer-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-slogan {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-white);
}

.footer-copyright {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-white);
  opacity: 0.8;
}

/* 侧边悬浮按钮 */
.floating-btn {
  position: fixed;
  right: 24px;
  top: 500px;
  width: 54px;
  height: 159px;
  background: var(--color-white);
  border: 1px solid var(--color-red);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  gap: 12px;
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.2s;
}

.floating-btn:hover {
  transform: scale(1.05);
}

.floating-icon {
  width: 38px;
  height: 38px;
  background: rgba(240, 62, 52, 0.1);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-icon img {
  width: 30px;
  height: 30px;
}

.floating-text {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
}

/* 分隔线 - 页脚顶部 */
.footer-content::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 400px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.modal-subtitle {
  font-size: 14px;
  color: #666;
}

.modal-phone {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  letter-spacing: 1px;
}

.modal-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: border-color 0.2s;
}

.modal-copy:hover {
  border-color: #999;
}

.modal-qrcode {
  width: 180px;
  height: 180px;
  margin: 16px 0 8px;
}

.modal-qrcode img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-tip {
  font-size: 13px;
  color: #999;
}

/* 移动端适配 */
@media (max-width: 768px) {
  :root {
    --content-width: 100%;
    --page-width: 100%;
  }

  /* 导航栏 */
  .nav-container {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .btn-join-nav {
    padding: 6px 14px;
    font-size: 13px;
  }

  /* 顶部横幅 */
  .top-banner {
    height: auto;
    padding: 10px 16px;
  }

  .banner-content {
    flex-direction: column;
    gap: 8px;
  }

  .banner-text {
    font-size: 14px;
    letter-spacing: 1px;
  }

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

  /* Hero */
  .hero {
    height: auto;
    min-height: 500px;
    padding-top: 131px;
  }

  .hero-content {
    padding: 60px 20px 40px;
    gap: 16px;
  }

  .hero-title-sub {
    font-size: 32px;
  }

  .hero-title-main {
    font-size: 38px;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 24px;
  }

  .btn-join-hero {
    width: 140px;
    height: 44px;
    font-size: 15px;
  }

  /* 产品中心 */
  .products {
    padding: 40px 16px 60px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-title {
    font-size: 26px;
    line-height: 36px;
  }

  .section-desc {
    font-size: 15px;
    line-height: 24px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  /* 生态产品 */
  .ecosystem {
    padding: 60px 0 0;
  }

  .ecosystem .section-header {
    padding: 0 16px;
  }

  .ecosystem-visual {
    margin-top: 24px;
  }

  /* 合伙人招募 */
  .partner {
    padding: 50px 0;
  }

  .partner-content {
    padding: 0 16px;
  }

  .partner-stats {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px 0 32px;
  }

  .stat-value {
    font-size: 32px;
    line-height: 40px;
  }

  /* 三大优势 */
  .advantages {
    padding: 0 16px 60px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .advantage-card {
    min-height: auto;
    padding: 24px 20px;
  }

  .advantage-card.center-card {
    min-height: auto;
  }

  .advantage-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .btn-consult {
    width: 100%;
    max-width: 300px;
  }

  .timeline {
    padding: 0 16px;
  }

  /* 关于我们 */
  .about {
    padding: 60px 16px;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .about-desc {
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 32px;
  }

  .about-card {
    padding: 24px 16px;
  }

  .about-card-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .about-card-desc {
    font-size: 14px;
    line-height: 22px;
  }

  /* 战略合作伙伴 */
  .partners-section {
    padding: 30px 16px 50px;
  }

  .partners-logos {
    flex-wrap: wrap;
    gap: 10px;
  }

  .partner-logo-item {
    width: calc(50% - 5px);
    height: 56px;
  }

  /* 页脚 */
  .footer {
    padding: 40px 16px 30px;
  }

  .footer-slogan {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .footer-copyright {
    font-size: 12px;
  }

  /* 侧边悬浮按钮 */
  .floating-btn {
    right: 12px;
    top: auto;
    bottom: 80px;
    width: 46px;
    height: 136px;
    padding: 8px 6px;
  }

  .floating-icon {
    width: 32px;
    height: 32px;
  }

  .floating-icon img {
    width: 24px;
    height: 24px;
  }

  .floating-text {
    font-size: 12px;
  }
}
