/* 自定义滚动条样式 */
::-webkit-scrollbar {
  width: 7px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

:root {
  /* 默认字体大小 */
  font-size: 16px;
  /* 主色调 */
  --color-primary: #10a33b;

  /* 次色调 */
  --color-secondary: #009944;
  /* 淡色 */
  --color-light: rgb(176, 237, 195);
  /* 辅助色 */
  --color-tertiary: #000;
  /* 背景色 */
  --color-background: #fff;
  /* 背景淡色 */
  --color-background-light: #f0f0f0;
  /* 文本色 */
  --color-text: #000;
  /* 文本淡色 */
  --color-text-light: #666666;
  /* 标题色 */
  --color-title: #000;
  /* 副标题色 */
  --color-sub-title: #666666;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 全局header样式 */
body {
  padding-top: 78px;
  background-color: var(--color-background);
  color: var(--color-text);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-background);
  z-index: 100;
}

img {
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  object-fit: cover;
}

.com-full-width {
  width: 100%;
  height: 100%;
}

.header {
  display: flex;
  height: 78px;
  min-height: 78px;
  padding: 0 20px;
  position: relative;
  width: 100%;
  color: var(--color-text);
  align-items: center;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.header-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-left img {
  height: 5rem;
  cursor: pointer;
}

.header-right {
  height: 100%;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 1rem;
}

.header-item {
  display: flex;
  gap: 2rem;
  height: 100%;
  align-items: center;
  justify-content: flex-start;
  flex: none;
}

.header-item-active {
  color: var(--color-primary);
}

.item {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.item:hover {
  color: var(--color-secondary);
}

.header-login {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  cursor: pointer;
  color: #808080;
  transition: color 0.3s ease;
  font-size: 0.9rem;
  white-space: nowrap;
  gap: 1rem;
  min-width: 120px;
  height: 32px;
}

.header-login:hover {
  color: var(--color-secondary);
}

.user-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #333;
  display: inline-block;
}

.header-language {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 20px;
  cursor: pointer;
  min-width: 40px;
}

.header-language img {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s ease;
}

.header-language:hover img {
  transform: scale(1.1);
}

/* 移动端菜单按钮无背景，仅显示三条横线 */
.mobile-menu-btn {
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 1002;
  width: 48px;
  height: 48px;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s;
  border: none;
}
.mobile-menu-btn:hover {
  background: transparent;
  box-shadow: none;
}

/* 汉堡按钮三条线动画 */
.menu-icon {
  width: 28px;
  height: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s;
}
.menu-icon span {
  display: block;
  height: 4px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(.4,2,.6,1);
}

/* 动画：变成 X */
.menu-icon.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-icon.is-active span:nth-child(2) {
  opacity: 0;
}
.menu-icon.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* 优化移动端菜单弹出层 */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 80vw;
  max-width: 320px;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 24px rgba(0,0,0,0.10);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.4,2,.6,1);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
}
.mobile-menu.is-active {
  transform: translateX(0);
}

/* 菜单项美化 */
.menu-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
}
.menu-item {
  font-size: 1.2rem;
  color: #333;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.menu-item.active,
.menu-item:hover {
  background: #f0f0f0;
  color: #10a33b;
  box-shadow: 0 2px 8px rgba(16,163,59,0.06);
}

/* 响应式：只在移动端显示 */
@media (min-width: 900px) {
  .mobile-menu-btn, .mobile-menu {
    display: none !important;
  }
}

/* 全局footer样式 */
.footer-main {
  display: flex;
  height: 20rem;
  flex-direction: column;
  background-color: #2b2b2b;
  color: #999999;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  object-fit: cover;
}

.footer-top {
  flex: 1;
  border-bottom: 1px solid #454545;
  display: flex;

}

.footer-top-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4rem;
}

.footer-top-center {
  flex: 1;
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 6rem;
  font-size: 0.9rem;
  color: #666666;
}

.footer-top-center span {
  cursor: pointer;
}

.footer-top-right {
  flex: 1;
  margin-top: 4rem;
  color: #666666;
  font-size: 0.9rem;
}

.footer-bottom {
  height: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #999999;
}

/* 响应式样式 */
@media screen and (max-width: 1200px) {
  :root {
    font-size: 14px;
  }
}

@media screen and (max-width: 768px) {
  :root {
    font-size: 12px;
  }

  body {
    padding-top: 50px;
  }

  .header {
    height: 50px;
    /* 移动端高度 */
    min-height: 50px;
    /* 移动端最小高度 */
    padding: 0 50px;
  }

  .header-right {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-item {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .header-login {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 10px;
    font-size: 0.9rem;
    min-width: 80px;
    /* 移动端最小宽度 */
    height: 28px;
    /* 移动端高度 */
  }

  .header-language {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    min-width: 30px;
  }

  .header-language img {
    width: 1.5rem;
    height: 1.5rem;
  }

  header {
    transition: opacity 0.3s ease;
  }

  .mobile-menu.is-active+header {
    opacity: 0;
    pointer-events: none;
  }

  .footer-main {
    height: auto;
    padding: 2rem 1rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
    padding-bottom: 1rem;
  }

  .footer-top-left,
  .footer-top-center,
  .footer-top-right {
    margin-top: 0;
  }

  .footer-top-center {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media screen and (max-width: 480px) {
  :root {
    font-size: 14px;
  }
}

/* 用户下拉菜单样式 */
.user-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  min-width: 120px;
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.user-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  padding: 8px 16px;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
  color: var(--color-secondary);
}

/* 移动端下拉菜单样式 */
@media screen and (max-width: 768px) {
  .dropdown-menu {
    position: fixed;
    top: 50px;
    right: 15px;
    width: 120px;
  }
}

/* 新的导航按钮样式 */
.nav-button {
  position: relative;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.nav-text {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.nav-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-button:hover .nav-text {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.nav-button:hover .nav-line {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-button-active .nav-text {
  color: var(--color-primary);
  font-weight: 500;
}

.nav-button-active .nav-line {
  transform: scaleX(1);
}

.menu-icon span {
  background: #333;
}
.menu-icon.is-active span {
  background: #333;
}
.header-language-switch {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-left: auto;
  margin-right: 0.5rem;
  padding: 2px 6px;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  transition: background 0.2s;
  height: 32px;
}

.header-language-switch:hover {
  background: #f5f5f5;
}

.header-language-switch .lang-text {
  display: inline;
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
}

.header-language-switch .lang-icon {
  display: none;
  width: 20px;
  height: 20px;
  margin-left: 0.2rem;
}

/* 移动端样式 */
@media (max-width: 900px) {
  .header-language-switch .lang-text {
    display: none;
  }
  .header-language-switch .lang-icon {
    display: inline;
  }
  .header-language-switch {
    height: 28px;
    padding: 2px 4px;
    margin-left: auto;
    margin-right: 0.2rem;
  }
  .mobile-menu-btn {
    position: fixed;
    top: 1.2rem;
    left: 1.2rem;
    z-index: 1002;
  }
  .mobile-language-switch {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 28px;
    padding: 2px 4px;
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
    cursor: pointer;
  }
  .mobile-language-switch .lang-icon {
    width: 18px;
    height: 18px;
    display: inline;
  }
  .footer-main {
    height: auto;
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .footer-top {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    text-align: center;
    padding-bottom: 0.5rem;
  }
  .footer-top-left,
  .footer-top-center,
  .footer-top-right {
    margin-top: 0;
  }
  .footer-top-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.2rem;
    width: 100%;
    margin-top: 0.2rem;
  }
  .footer-top-center span {
    min-width: 70px;
    text-align: center;
    margin-bottom: 0.2rem;
    font-size: 1rem;
  }
  .footer-top-left div:first-child {
    font-size: 1.1rem !important;
  }
  .footer-bottom {
    height: 2.5rem;
    font-size: 0.8rem;
    padding-top: 0.5rem;
  }
}

/* 移动端语言切换按钮样式 */
.mobile-language-switch {
  display: none;
}
@media (max-width: 900px) {
  .mobile-language-switch {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    margin-right: 0.5rem;
    height: 28px;
    padding: 2px 4px;
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
    cursor: pointer;
  }
  .mobile-language-switch .lang-icon {
    width: 28px;
    height: 28px;
    display: inline;
  }
}

.strategy-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  margin: 2.5rem 0;
  gap: 2.5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.2rem;
}
.strategy-section-left, .strategy-section-right {
  flex: 1 1 0;
  min-width: 260px;
  max-width: 480px;
  padding: 0 1.2rem;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .strategy-section {
    flex-direction: column;
    gap: 1.2rem;
    padding: 0 0.5rem;
  }
  .strategy-section-left, .strategy-section-right {
    max-width: 100%;
    padding: 0 0.5rem;
  }
}

