:root {
  --sds-typography-body-font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  --sds-typography-body-size-medium: 16px;
  --sds-color-text-default-default: #000000;
  --sds-typography-body-font-weight-regular: 400;
  --sds-typography-body-font-weight-strong: 600;
  --sds-typography-heading-font-family: "Overlock", -apple-system, Roboto,
    Helvetica, sans-serif;
  --sds-typography-heading-size-base: 24px;
  --sds-typography-heading-font-weight: 700;
  --sds-typography-subheading-font-family: "SF Pro", -apple-system, Roboto,
    Helvetica, sans-serif;
  --sds-typography-subheading-size-medium: 18px;
  --sds-typography-subheading-font-weight: 400;
  --sds-color-text-default-secondary: #666666;
  --sds-color-text-brand-on-brand: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  padding-top: 56px;
}

.home-page {
  background-color: #ffffff;
  overflow: hidden;
}

/* Container for consistent content width */
.content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid #d9d9d9;
  display: flex;
  width: 100%;
  padding: 12px;
  align-items: center;
  gap: 16px;
  overflow: visible;
  justify-content: center;
  flex-wrap: wrap;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  width: 90%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.logo-container {
  border-radius: 7px;
  align-self: stretch;
  display: flex;
  margin: auto 0;
  align-items: stretch;
  gap: 8px;
  font-family:
    "Overlock",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-size: 18px;
  color: #000000;
  font-weight: 700;
  white-space: nowrap;
  width: auto;
}

.logo-container img {
  width: 28px;
  height: 28px;
}

.logo-text {
  margin: auto 0;
}

.nav-pill-list {
  align-self: stretch;
  display: flex;
  min-width: 240px;
  margin: auto 0;
  width: 716px;
  flex-shrink: 1;
  height: 32px;
  gap: 8px;
  flex: 1;
  flex-basis: 24px;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "PingFang SC", -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 14px;
  color: #0c0c0d;
  font-weight: 400;
  white-space: nowrap;
  line-height: 1.5;
  width: auto;
  padding: 4px 8px;
  height: 28px;
  box-sizing: border-box;
  border-radius: 8px;
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  position: relative;
  cursor: pointer;
  user-select: none;
  z-index: 9999;
  transition: background-color 0.2s ease;
  flex: 0 1 auto;
}

.language-selector:hover {
  background-color: #e8e8e8;
}

.language-text {
  flex: 1;
  flex-shrink: 1;
  flex-basis: 0%;
}

.dropdown-icon {
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  width: 12px;
  flex-shrink: 0;
}

.header-auth {
  align-self: stretch;
  display: flex;
  margin: auto 0;
  align-items: center;
  gap: 12px;
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-body-size-medium);
  color: var(--sds-color-text-default-default);
  font-weight: var(--sds-typography-body-font-weight-regular);
  line-height: 1;
  justify-content: flex-start;
  width: auto;
  flex: 0 1 auto;
}

.sign-in-button {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: #000000;
  border: 1px solid #000000;
  padding: 4px 10px;
  height: 28px;
  box-sizing: border-box;
  font-size: 14px;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex: 0 1 auto;
  min-width: fit-content;
  text-decoration: none;
}

.sign-in-button:hover {
  background-color: #333333;
  border-color: #333333;
}

/* Hero Section Styles */
.hero-section {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 573px;
  width: 100%;
  padding: 171px 24px;
  align-items: center;
  justify-content: flex-start;
  margin: 0 auto;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  /* max-width: 1200px; */
  margin: 0 auto;
  left: 0;
  right: 0;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  box-shadow: 0px 0px 4px rgba(255, 255, 255, 0.5);
  width: 100%;
  max-width: 415px;
  text-align: center;
}

.hero-title {
  color: #1e1e1e;
  font-size: 72px;
  font-family:
    "Overlock",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -2.16px;
}

.hero-subtitle {
  color: #000000;
  font-size: 20px;
  font-family:
    "SF Pro",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 400;
  line-height: 29px;
  margin-top: 8px;
}

.button-group {
  position: relative;
  box-shadow: 0px 0px 4px rgba(255, 255, 255, 0.5);
  display: flex;
  margin-top: 32px;
  width: 240px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-body-size-medium);
  color: var(--sds-color-text-brand-on-brand);
  font-weight: var(--sds-typography-body-font-weight-regular);
  line-height: 1;
}

.chrome-extension-button {
  border-radius: 8px;
  background-color: #2c2c2c;
  border: 1px solid #2c2c2c;
  align-self: stretch;
  display: flex;
  margin: auto 0;
  width: 100%;
  padding: 12px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  justify-content: center;
  flex: 1;
  flex-shrink: 1;
  flex-basis: 0%;
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.chrome-extension-button:hover {
  background-color: #444444;
  border-color: #444444;
}

.chrome-icon {
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  width: 24px;
  align-self: stretch;
  margin: auto 0;
  flex-shrink: 0;
}

.button-text {
  align-self: stretch;
  margin: auto 0;
}

/* Smart Connections Section Styles */
.smart-connections {
  background-color: #ffffff;
  display: flex;
  width: 100%;
  padding: 58px 0;
  flex-direction: column;
  overflow: hidden;
  align-items: center;
}

.section-header {
  width: 100%;
  max-width: 1200px;
  padding: 0 64px;
  line-height: 1.2;
}

.section-heading {
  color: var(--sds-color-text-default-default);
  font-family: var(--sds-typography-heading-font-family);
  font-size: var(--sds-typography-heading-size-base);
  font-weight: var(--sds-typography-heading-font-weight);
  letter-spacing: -0.48px;
}

.section-subheading {
  color: var(--sds-color-text-default-secondary);
  font-family: var(--sds-typography-subheading-font-family);
  font-size: var(--sds-typography-subheading-size-medium);
  font-weight: var(--sds-typography-subheading-font-weight);
  margin-top: 8px;
}

.connections-image-container {
  border-radius: 8px;
  margin-top: 40px;
  width: 90%;
  max-width: 1200px;
  overflow: hidden;
  border: 1px solid #b9b9b9;
  background-color: #ffffff;
  box-sizing: border-box;
}

.connections-image {
  aspect-ratio: 2.02;
  object-fit: contain;
  object-position: center;
  width: 100%;
  display: block;
}

.features-container {
  display: flex;
  margin-top: 64px;
  width: 90%;
  max-width: 1200px;
  align-items: flex-start;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-column {
  display: flex;
  flex-direction: column;
  width: calc(50% - 16px);
  align-items: flex-start;
  justify-content: flex-start;
}

.feature-header {
  width: 100%;
  color: var(--sds-color-text-default-default);
  line-height: 1.2;
}

.feature-heading {
  font-family: var(--sds-typography-heading-font-family);
  font-size: var(--sds-typography-heading-size-base);
  font-weight: var(--sds-typography-heading-font-weight);
  letter-spacing: -0.48px;
}

.feature-subheading {
  font-family: var(--sds-typography-subheading-font-family);
  font-size: var(--sds-typography-subheading-size-medium);
  font-weight: var(--sds-typography-subheading-font-weight);
  margin-top: 8px;
}

.feature-image-container {
  border-radius: 5px;
  background-color: #ffffff;
  border: 1px solid #b9b9b9;
  margin-top: 24px;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.feature-image {
  aspect-ratio: 1.78;
  object-fit: contain;
  object-position: center;
  width: 100%;
  display: block;
}

/* Chat Section Styles */
.chat-section {
  background-color: #ffffff;
  display: flex;
  width: 100%;
  padding: 64px 0;
  flex-direction: column;
  overflow: hidden;
  align-items: center;
  line-height: 1.2;
}

.chat-image-container {
  border-radius: 8px;
  margin-top: 30px;
  width: 90%;
  max-width: 1200px;
  overflow: hidden;
  border: 1px solid #b9b9b9;
  background-color: #ffffff;
  box-sizing: border-box;
}

.chat-image {
  aspect-ratio: 2.54;
  object-fit: contain;
  object-position: center;
  width: 100%;
  display: block;
}

/* Footer Styles */
.footer {
  background-color: #ffffff;
  border-top: 1px solid #d9d9d9;
  display: flex;
  width: 100%;
  padding: 32px 0 160px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer-content {
  width: 90%;
  max-width: 1200px;
  display: flex;
  align-items: flex-start;
  gap: 16px 100px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 20px;
}

.footer-title {
  display: flex;
  min-width: 240px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 262px;
}

.footer-logo {
  box-sizing: content-box;
  border-radius: 7px;
  background-color: #ffffff;
  border:1px solid #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: 40px;
  height: 40px;
}

.footer-logo img {
  border-radius: 7px;
}

.social-links {
  display: flex;
  margin-top: 24px;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
}

.social-link {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.social-link:hover {
  transform: scale(1.1);
}

.social-icon {
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  width: 24px;
  align-self: stretch;
  margin: auto 0;
  flex-shrink: 0;
}

.footer-resources {
  min-width: 240px;
  font-family: var(--sds-typography-body-font-family);
  font-size: var(--sds-typography-body-size-medium);
  color: var(--sds-color-text-default-default);
  white-space: nowrap;
  line-height: 1.4;
  width: 262px;
}

.resources-title {
  width: 100%;
  padding-bottom: 16px;
  font-weight: var(--sds-typography-body-font-weight-strong);
}

.resources-item {
  margin-top: 12px;
  width: 89px;
  font-weight: var(--sds-typography-body-font-weight-regular);
  text-decoration: none;
  color: var(--sds-color-text-default-default);
  cursor: pointer;
  display: block;
  transition: color 0.2s ease;
}

.resources-item:hover {
  color: #666666;
  text-decoration: underline;
}

/* Media Queries */
@media (max-width: 991px) {
  .header {
    max-width: 100%;
    padding: 12px 0;
  }

  .header-content {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 15px;
  }

  .logo-container {
    white-space: initial;
    font-size: 16px;
  }
  
  .logo-container img {
    width: 30px;
    height: 30px;
  }

  .language-selector {
    white-space: initial;
    font-size: 14px;
    width: auto;
    margin-left: auto;
    margin-right: 10px;
  }
  
  .dropdown-icon {
    width: 10px;
    height: 10px;
  }

  .header-auth {
    margin-left: 0;
  }
  
  .sign-in-button {
    font-size: 14px;
    padding: 6px 12px;
  }

  .hero-section {
    padding: 100px 20px;
  }

  .hero-title {
    font-size: 40px;
  }

  .smart-connections {
    padding: 40px 0;
  }

  .section-header {
    padding: 0 20px;
  }

  .connections-image-container {
    width: 95%;
  }

  .features-container {
    width: 95%;
    margin-top: 40px;
    flex-direction: column;
    align-items: center;
  }

  .feature-column {
    width: 100%;
    margin-left: 0;
    margin-top: 40px;
  }
  
  .feature-column:first-child {
    margin-top: 0;
  }

  .chat-section {
    padding: 40px 0;
  }

  .chat-image {
    width: 95%;
  }

  .footer {
    max-width: 100%;
    padding: 20px 0 100px;
  }

  .footer-content {
    width: 85%;
    padding: 0 10px;
  }

  .footer-resources {
    white-space: initial;
  }

  .resources-title {
    white-space: initial;
  }

  .resources-item {
    padding-right: 20px;
    white-space: initial;
  }
}

@media (max-width: 640px) {
  .hero-section {
    min-height: 20px;
    padding-bottom: 99px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 12px;
  }

  .chrome-extension-button {
    color: #ffffff;
  }

  .content-container {
    width: 95%;
    padding: 0 10px;
  }
}

@media (max-width: 576px) {
  .header-content {
    padding: 0 10px;
    flex-wrap: nowrap;
    justify-content: space-between;
    row-gap: 15px;
  }
  
  /* 隐藏导航栏 */
  .nav-pill-list {
    display: none;
  }
  
  .logo-container {
    font-size: 14px;
    flex: 0 0 auto;
  }
  
  .logo-container img {
    width: 25px;
    height: 25px;
  }
  
  .logo-text {
    font-size: 18px;
  }
  
  .language-selector {
    font-size: 12px;
    margin-right: 5px;
    flex: 0 0 auto;
    order: 2;
  }
  
  .language-text {
    font-size: 12px;
  }
  
  .header-auth {
    flex: 0 0 auto;
    order: 3;
  }
  
  .sign-in-button {
    font-size: 12px;
    padding: 5px 10px;
  }
  
  /* 确保语言下拉菜单在小屏幕上也能正常显示 */
  .language-dropdown {
    min-width: 100px;
  }
  
  .language-option {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* 修改语言下拉菜单的样式，确保它显示在最上层 */
.language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  min-width: 120px;
  overflow: hidden;
  margin-top: 5px;
}

.language-dropdown.show {
  display: block;
}

.language-option {
  padding: 10px 15px;
  transition: background-color 0.2s;
  cursor: pointer;
  font-size: 14px;
}

.language-option:hover {
  background-color: #f5f5f5;
}

.language-option:first-child {
  border-radius: 8px 8px 0 0;
}

.language-option:last-child {
  border-radius: 0 0 8px 8px;
}
