/* ==========================================================================
   全局组件: 公共 Header (v2) & Navigation
   ========================================================================== */
.ys-header-v2 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  background: var(--text-pure-white);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  transition: var(--transition-smooth);
}

.ys-header-v2 .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%;
  max-width: var(--container-max-width);
  height: 100%;
  margin: 0 auto;
}

.ys-header-v2 .logo img {
  width: 142px;
  cursor: pointer;
}

.ys-header-v2 .nav-tree {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 40px);
  height: 100%;
  flex-shrink: 1;
  flex-wrap: nowrap;
}

.ys-header-v2 .nav-item {
  position: relative;
  font-size: clamp(13px, 1.1vw, 16px);
  color: var(--text-dark-h1);
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.ys-header-v2 .nav-item:hover {
  color: var(--color-primary);
}

.ys-header-v2 .nav-item::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 86px;
  height: 2px;
  background-color: var(--color-primary);
  transform: translateX(-50%) scaleX(0);
  opacity: 0;
  transition: var(--transition-smooth);
}

.ys-header-v2 .nav-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.ys-header-v2 .nav-item .arrow-icon {
  width: 18px;
  height: 18px;
  margin-left: 4px;
  transition: var(--transition-smooth);
}

.ys-header-v2 .nav-item .mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(28px);
  background: var(--text-pure-white);
  box-shadow: var(--shadow-hover);
  height: auto;
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: var(--z-mega);
  padding: 0;
  white-space: normal;
}

.ys-header-v2 .nav-item .mega-dropdown::after {
  content: "";
  position: absolute;
  top: -28px;
  left: 0;
  width: 100%;
  height: 28px;
  background: transparent;
}

.ys-header-v2 .nav-item .mega-dropdown::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 18px solid var(--text-pure-white);
}

.ys-header-v2 .nav-item .mega-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(18px);
}

.mega-content-wrapper {
  display: flex;
  width: 656px;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 16px;
}

/* 单列模式（关于我们） */
.mega-dropdown-single {
  width: 310px;
}

.mega-single-wrapper {
  width: 310px;
}

.mega-preview-full {
  flex: 1;
  width: 100%;
}

.mega-preview-side {
  background: #f7f8fa;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mega-preview-side img {
  width: 250px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.mega-preview-side h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 0em;
  color: #3d3d3d;
  margin-bottom: 12px;
}

.mega-preview-side p {
  width: 100%;
  max-width: 250px;
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 0em;
  color: var(--text-menu-desc);
  line-height: 150%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Sutra 等产品 Mega 弹窗：中文固定两行，避免 keep-all 在逗号处拆行 */
.site-lang-zh-cn .mega-preview-side p .mega-desc-line {
  display: block;
}

.mega-menu-list {
  flex: 1;
  padding: 16px;
  background: var(--text-pure-white);
}

.mega-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  margin-bottom: 2px;
}

.mega-item:hover,
.mega-item.active {
  background: rgba(255, 180, 7, 0.1);
}

.mega-item-icon {
  width: 36px;
  height: 36px;
  margin-right: 12px;
  flex-shrink: 0;
  background-image: var(--icon-default);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.2s;
}

.mega-item:hover .mega-item-icon,
.mega-item.active .mega-item-icon {
  background-image: var(--icon-hover);
}

.mega-item span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-menu-label);
}

.mega-item.active span {
  color: var(--color-primary);
}

.ys-header-v2 .tools-area {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 40px);
  flex-shrink: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.ys-header-v2 .tools-area .search-switch {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 20px);
  white-space: nowrap;
  font-size: clamp(12px, 1vw, 16px);
}


.ys-header-v2 .search-switch {
  font-size: 16px;
  color: var(--text-dark-h1);
}

.ys-header-v2 .search-switch a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.ys-header-v2 .search-switch a:hover {
  color: var(--color-primary);
}


.ys-header-v2 .btn-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ys-header-v2 .btn-cta {
  padding: 10px clamp(12px, 1.5vw, 28px);
  background: var(--color-primary);
  color: var(--text-pure-white);
  border-radius: 6px;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.ys-header-v2 .btn-login {
  padding: 10px clamp(28px, 2.29vw, 44px);
  color: var(--color-primary);
  background: var(--text-pure-white);
  border-radius: 6px;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 500;
  border: 1px solid var(--color-primary);
}

.ys-header-v2 .btn-cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

/* ==========================================================================
   登录 / 注册 弹窗样式（layui layer 扩展皮肤）
   ========================================================================== */
.layui-layer.ys-layer-skin {
  border-radius: 20px;
  width: 460px !important;
  max-height: calc(100vh - 80px) !important;
  overflow: hidden;
}

.layui-layer.ys-layer-skin .layui-layer-content {
  padding: 0;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.layui-layer.ys-layer-skin .layui-layer-close {
  right: 0px;
  top: 0px;
  width: 24px;
  height: 24px;
  /* 2. 使用 background-image 配合 background-size */
  background-image: url("../images/close.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px; /* 关键：控制图标在容器内的实际大小 */
  transition:
    transform 0.3s,
    opacity 0.3s;
  padding: 0;
  border: 0;
  color: transparent;
  background-color: transparent;
}

.layui-layer.ys-layer-skin .layui-layer-close:hover {
  transform: rotate(90deg);
  opacity: 1;
}

.layui-layer.ys-layer-skin .layui-layer-close2:hover {
  background-color: transparent;
}

.ys-modal-wrap {
  padding: 40px 30px;
}

.ys-modal-title {
  text-align: center;
  margin-bottom: 30px;
  font-family: Source Han Sans;
  font-size: 22px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 0em;
  color: #000000;
}

.ys-form-item {
  margin-bottom: 20px;
  position: relative;
}

.ys-input {
  width: 100%;
  height: 52px;
  border: 1px solid #d7dce2;
  border-radius: 6px;
  padding: 0 44px 0 20px;
  font-size: 15px;
  color: #333;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
  background: #fff;
}

.ys-input:focus {
  border-color: var(--color-primary);
}

.ys-input::placeholder {
  color: #bbb;
}

.ys-input.error {
  border-color: #f12d35;
  background: #fff5f5;
}

.ys-input.error:focus {
  border-color: #f12d35;
}

.ys-field-error {
  display: none;
  position: absolute;
  bottom: -17px;
  left: 0;
  white-space: nowrap;
  font-family: Source Han Sans;
  font-size: 14px;
  font-weight: normal;
  line-height: 100%;
  letter-spacing: 0em;
  color: #f12d35;
}

.ys-field-error.visible {
  display: block;
}

.ys-pwd-wrap .ys-eye-btn {
  position: absolute;
  right: 14px;
  top: 26px;
  transform: translateY(-50%);
  cursor: pointer;
  width: 20px;
  height: 20px;
  background: url("../images/dont_see_psw.webp") no-repeat center;
  background-size: contain;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.ys-pwd-wrap .ys-eye-btn.active {
  background-image: url("../images/see_psw.webp");
  opacity: 1;
}

.ys-agree-wrap {
  position: relative;
}

.ys-agree-wrap .ys-field-error {
  bottom: -18px;
}

.ys-agree-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  font-size: 14px;
  color: #999;
}

.ys-agree-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  border-radius: 2px;
  cursor: pointer;
}

.ys-agree-row label {
  cursor: pointer;
  line-height: 1.5;
}

.ys-link {
  color: var(--color-primary);
  text-decoration: none;
}

.ys-cancel{
  color: var(--color-primary);
  text-decoration: none;
  width: 50%;
  border: 1px solid var(--color-primary);
  height: 52px;
  line-height: 52px;
  border-radius: 6px;
}

.ys-link:hover {
  text-decoration: underline;
}

.ys-btn-submit {
  width: 100%;
  height: 52px;
  background: rgba(255, 180, 7, 0.4);
  color: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 4px;
  cursor: not-allowed;
  transition:
    background 0.2s,
    transform 0.15s,
    color 0.2s;
  margin-top: 40px;
}

.ys-btn-model-submit.active {
  background: var(--color-primary, #ffb407);
  color: #fff;
  cursor: pointer;
  margin-top: 0px;
  width: 50%;
  height: 52px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 4px;
  transition:
    background 0.2s,
    transform 0.15s,
    color 0.2s;
}

.ys-btn-submit.active {
  background: var(--color-primary, #ffb407);
  color: #fff;
  cursor: pointer;
}

.ys-btn-submit.active:hover {
  background: var(--color-primary-hover, #e5a300);
  transform: translateY(-1px);
}

.ys-modal-footer {
  text-align: center;
  margin-top: 84px;
  font-size: 14px;
  color: #666;
}

.register-footer {
  margin-top: 50px;
}

.back-login-footer {
  margin-top: 20px;
}

.contact-confirm-desc {
  text-align: center;
  font-size: 14px;
  color: #999;
  margin: -16px 0 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .layui-layer.ys-layer-skin {
    width: calc(100vw - 32px) !important;
    max-width: 100vw !important;
    max-height: calc(100vh - 48px) !important;
    left: 16px !important;
    border-radius: 16px;
  }

  .ys-modal-wrap {
    padding: 32px 20px 24px;
  }

  .ys-modal-title {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .ys-btn-submit {
    margin-top: 28px;
  }

  .ys-modal-footer {
    margin-top: 48px;
  }

  .register-footer {
    margin-top: 32px;
  }
}

/* ==========================================================================
   Header 已登录状态：用户头像 + 下拉菜单
   ========================================================================== */
.user-avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-avatar-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  transition: box-shadow 0.2s;
}

.user-avatar-wrap:hover .user-avatar-icon {
  box-shadow: 0 0 0 3px rgba(255, 180, 7, 0.25);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: 220px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.22s,
    transform 0.22s,
    visibility 0.22s;
  z-index: 9999;
  overflow: hidden;
}

.user-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 14px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fff;
}

.user-avatar-wrap:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eaeaea;
}

.user-dropdown-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.user-dropdown-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: PingFang SC;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0px;
  color: #1a1a1a;
}

.user-dropdown-list {
  list-style: none;
  margin: 0;
  padding-top: 8px;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  font-family: PingFang SC;
  font-size: 14px;
  font-weight: normal;
  line-height: 28px;
  letter-spacing: 0px;
  color: #333;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s;
  padding-left: 18px;
}

.user-dropdown-item:hover {
  background: rgba(255, 180, 7, 0.1);
  border-radius: 6px;
}

.user-dropdown-personal-center {
  width: 16px;
  height: 16px;
}

.mobile-user-dropdown {
  display: none;
}

/* ==========================================================================
   全局组件: 公共 Footer (v2)
   ========================================================================== */
.ys-footer-v2 {
  background: var(--color-footer-bg);
  padding: 68px 0 22px;
  height: 500px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ys-footer-v2 .logo {
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  width: 95%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-bottom: 30px;
  margin-bottom: 31px;
}

.ys-footer-v2 .logo img {
  width: 114px;
  cursor: pointer;
}

.ys-footer-v2 .footer-container {
  width: 95%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.ys-footer-v2 .left-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 80px;
}

.ys-footer-v2 .matrix-col {
  /* width: 100px; */
}

.ys-footer-v2 .matrix-col .col-title {
  color: var(--text-pure-white);
  font-size: 14px;
  font-weight: normal;
  line-height: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(216, 216, 216, 0.7);
  margin-bottom: 26px;
}

.ys-footer-v2 .matrix-col .col-link {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 16px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ys-footer-v2 .matrix-col .col-link:hover {
  color: var(--color-primary);
}

.ys-footer-v2 .right-qr {
  display: flex;
  gap: 40px;
}

.ys-footer-v2 .qr-item {
  text-align: center;
}

.ys-footer-v2 .qr-item img {
  width: 120px;
  height: 120px;
  background: #fff;
  margin-bottom: 12px;
}

.ys-footer-v2 .qr-item p {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

.ys-footer-v2 .legal-bar {
  width: 95%;
  max-width: var(--container-max-width);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  text-align: center;
  font-size: 12px;
}

.ys-footer-v2 .legal-bar a {
  color: var(--text-muted);
  text-decoration: none;
}

/* ==========================================================================
   移动端 Header：汉堡菜单 + 抽屉导航
   ========================================================================== */

/* 默认隐藏移动端专属元素（PC端） */
.mobile-tools,
.mobile-nav,
.mobile-nav-mask,
.mobile-hamburger-left {
  display: none;
}

/* 汉堡按钮 — 仅移动端显示 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  }

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-menu-label);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* 汉堡 → X 动画 */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 抽屉菜单 */
.mobile-nav {
  position: fixed;
  top: 80px;
  left: 0;
  width: 80%;
  max-width: 320px;
  height: calc(100vh - 80px);
  background: #fff;
  z-index: calc(var(--z-header) - 1);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.mobile-nav-list li a {
  display: block;
  padding: 16px 28px;
  font-size: 16px;
  color: var(--text-menu-label);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition:
    color 0.2s,
    background 0.2s;
}

.mobile-nav-list li a:active,
.mobile-nav-list li a:hover {
  color: var(--color-primary);
  background: rgba(255, 180, 7, 0.05);
}

.mobile-nav-bottom {
  padding: 24px 28px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-nav-bottom a {
  /* color: var(--text-menu-desc); */
  font-size: 14px;
  text-decoration: none;
}

.mobile-nav-bottom span {
  color: var(--text-menu-desc);
}

.mobile-cta {
  margin-left: auto;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

/* 移动端二级子菜单 */
.mobile-has-sub .mobile-nav-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  font-size: 16px;
  color: var(--text-menu-label);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s;
}

.mobile-has-sub .mobile-nav-parent:active,
.mobile-has-sub.sub-open .mobile-nav-parent {
  color: var(--color-primary);
  background: rgba(255, 180, 7, 0.05);
}

.mobile-has-sub .mobile-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.mobile-sub-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fafafa;
}

.mobile-sub-list li a {
  display: block;
  padding: 13px 28px 13px 44px;
  font-size: 14px;
  color: var(--text-menu-desc);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition:
    color 0.2s,
    background 0.2s;
}

.mobile-sub-list li a:active,
.mobile-sub-list li a:hover {
  color: var(--color-primary);
  background: rgba(255, 180, 7, 0.07);
}

/* 移动端抽屉语言切换高亮 */
.mobile-nav-bottom a {
  transition: color 0.2s;
}

/* 遮罩 */
.mobile-nav-mask {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: rgba(0, 0, 0, 0.4);
  z-index: calc(var(--z-header) - 2);
  opacity: 0;
  transition: opacity 0.35s;
}

.mobile-nav-mask.open {
  opacity: 1;
}

/* ==========================================================================
   移动端 Footer：单列折叠布局
   ========================================================================== */

/* ==========================================================================
   全局响应式容器宽度
   ========================================================================== */
@media (min-width: 1200px) {
  .ys-header-v2 .header-container,
  .ys-footer-v2 .footer-container,
  .ys-footer-v2 .logo,
  .ys-footer-v2 .legal-bar {
    width: 90%;
  }
}

@media (min-width: 1440px) {
  .ys-header-v2 .header-container,
  .ys-footer-v2 .footer-container,
  .ys-footer-v2 .logo,
  .ys-footer-v2 .legal-bar {
    width: 85%;
  }
}

@media (min-width: 1920px) {
  .ys-header-v2 .header-container,
  .ys-footer-v2 .footer-container,
  .ys-footer-v2 .logo,
  .ys-footer-v2 .legal-bar {
    width: 80%;
  }
}

/* ==========================================================================
   移动端断点 ≤768px：切换 Header / Footer 布局
   ========================================================================== */
@media (max-width: 768px) {
  /* Header：隐藏 PC 端导航，显示移动端工具栏 */
  .ys-header-v2 .nav-tree,
  .ys-header-v2 .tools-area {
    display: none;
  }

  .mobile-tools {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .mobile-tools .search-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
  }

  .mobile-nav,
  .mobile-nav-mask {
    display: flex;
  }

  .mobile-nav-mask {
    display: block;
    pointer-events: none; /* 关闭状态不拦截点击 */
  }

  .mobile-nav-mask.open {
    pointer-events: auto;
  }

  /* Header 容器：汉堡+Logo 靠左 | 工具区靠右 */
  .ys-header-v2 .header-container {
    width: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  /* 汉堡移到最左 */
  .hamburger {
    display: flex;
  }
  .mobile-hamburger-left {
    display: flex;
    order: -1;
    flex-shrink: 0;
    margin-right: 8px;
  }

  /* Logo 紧跟汉堡，保持 static 流内布局 */
  .ys-header-v2 .logo {
    position: static;
    left: auto;
    transform: none;
    flex-shrink: 0;
    margin-left: 16px;
  }

  /* 工具区推到最右 */
  .mobile-tools {
    margin-left: auto;
  }

  .ys-header-v2 .logo img {
    width: 110px;
  }

  /* 右侧工具区：语言 + 搜索 */
  .mobile-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .mobile-lang {
    font-size: 13px;
    color: rgba(51, 51, 51, 0.6);
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-lang:hover {
    color: var(--color-primary);
  }

  .mobile-lang-sep {
    font-size: 12px;
    color: var(--text-menu-desc);
  }

  .mobile-tools .search-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-left: 4px;
  }

  /* 移动端登录按钮 */
  .mobile-login-btn {
    padding: 5px 12px;
    color: var(--color-primary);
    background: var(--text-pure-white);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--color-primary);
    cursor: pointer;
    white-space: nowrap;
    margin-left: 4px;
    transition: background 0.2s, color 0.2s;
  }

  .mobile-login-btn:active {
    background: rgba(255, 180, 7, 0.1);
  }

  /* 移动端已登录头像 */
  .mobile-user-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    margin-left: 6px;
    transition: box-shadow 0.2s;
  }

  .mobile-user-avatar:active {
    box-shadow: 0 0 0 3px rgba(255, 180, 7, 0.25);
  }

  /* 移动端用户下拉菜单 */
  .mobile-user-dropdown {
    position: fixed;
    top: 80px;
    right: 0;
    width: 200px;
    background: #fff;
    border-radius: 0 0 0 16px;
    padding: 16px;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.13);
    z-index: calc(var(--z-header) + 1);
    display: none;
  }

  .mobile-user-dropdown.open {
    display: block;
  }

  .mobile-user-dropdown .user-dropdown-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaeaea;
  }

  .mobile-user-dropdown .user-dropdown-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
  }

  .mobile-user-dropdown .user-dropdown-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
  }

  .mobile-user-dropdown .user-dropdown-list {
    list-style: none;
    margin: 0;
    padding-top: 6px;
  }

  .mobile-user-dropdown .user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    padding-left: 8px;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s;
  }

  .mobile-user-dropdown .user-dropdown-item:active,
  .mobile-user-dropdown .user-dropdown-item:hover {
    background: rgba(255, 180, 7, 0.1);
  }

  .mobile-user-dropdown .user-dropdown-personal-center {
    width: 16px;
    height: 16px;
  }

  /* Footer：单列布局 */
  .ys-footer-v2 {
    height: auto;
    padding: 40px 0 20px;
  }

  .ys-footer-v2 .logo {
    width: 90%;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .ys-footer-v2 .footer-container {
    flex-direction: column;
    gap: 32px;
    width: 90%;
  }

  .ys-footer-v2 .left-matrix {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  }

  .ys-footer-v2 .matrix-col {
    width: auto;
  }

  .ys-footer-v2 .right-qr {
    justify-content: flex-start;
    gap: 24px;
  }

  .ys-footer-v2 .qr-item img {
    width: 96px;
    height: 96px;
  }

  .ys-footer-v2 .legal-bar {
    width: 90%;
    margin-top: 24px;
    padding-top: 16px;
  }
}

/* ── 退出登录确认弹窗 ────────────────────────────────────────────────── */
#logout-confirm-modal {
  display: none;
}
.lc-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45);
}
.lc-dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 40px 40px 36px;
  width: 420px;
  max-width: calc(100vw - 40px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.16);
  text-align: center;
  box-sizing: border-box;
}
.lc-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 28px; height: 28px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #aaa;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.lc-close:hover { color: #555; }
.lc-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.lc-subtitle {
  font-size: 14px;
  color: #888;
  margin-bottom: 28px;
  line-height: 1.6;
}
.lc-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.lc-btn-confirm {
  flex: 1;
  height: 48px;
  background: var(--color-primary, #E9A826);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
.lc-btn-confirm:hover { opacity: 0.88; }
.lc-btn-cancel {
  flex: 1;
  height: 48px;
  background: #fff;
  color: var(--color-primary, #E9A826);
  border: 1.5px solid var(--color-primary, #E9A826);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lc-btn-cancel:hover {
  background: #fff8ed;
}

/* 超小屏 ≤480px */
@media (max-width: 480px) {
  .ys-footer-v2 .left-matrix {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  }
}
