/* ============================================================
   Quick Access 悬浮入口（页面级模块，仅首页使用）
   设计稿节点：414:12116（展开态）/ 299:6957（收起态）
   - 收起：#8ac0ea 竖条 58×179@1920，竖排白字 Quick Access
   - 展开：左侧滑出白底面板（Test Drive / Service / TOP），
     竖条加高到 271 且文字变 Close；面板与竖条顶对齐
   样式归属页面而非公共导航组件，其他页面请勿直接引用。
   尺寸按 1920 基准 vw + clamp 双向缩放。
   ============================================================ */

.wuling-quickaccess-wrap {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  align-items: center;
}

/* 竖条开关：收起 58×179、展开 58×271，#8ac0ea 底 + 设计稿投影 */
.wuling-quickaccess-btn {
  position: relative;
  display: block;
  width: clamp(46px, 3.0208vw, 58px);
  height: clamp(143px, 9.3229vw, 179px);
  padding: 0;
  border: 0;
  background: #8ac0ea;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 20px 12.5px rgba(0, 0, 0, 0.1), 0 8px 5px rgba(0, 0, 0, 0.1);
  transition: height 0.3s ease;
}

.wuling-quickaccess-wrap.is-open .wuling-quickaccess-btn {
  height: clamp(217px, 14.1146vw, 271px);
}

/* 竖排文字（自下而上阅读）：两条文案绝对定位叠放，按展开态切换 */
.wuling-quickaccess-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--wuling-font-family);
  font-size: clamp(13px, 0.8333vw, 16px);
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.wuling-quickaccess-text--close {
  opacity: 0;
}

.wuling-quickaccess-wrap.is-open .wuling-quickaccess-text--label {
  opacity: 0;
}

.wuling-quickaccess-wrap.is-open .wuling-quickaccess-text--close {
  opacity: 1;
}

/* 展开面板：白底三行（Test Drive / Service / TOP），贴在竖条左侧并顶对齐 */
.wuling-quickaccess-panel {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(12px);
  display: flex;
  flex-direction: column;
  height: clamp(217px, 14.1146vw, 271px);
  min-width: clamp(110px, 7.1354vw, 137px);
  background: #fff;
  box-shadow: -10px 0 15px rgba(0, 0, 0, 0.05);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}

.wuling-quickaccess-wrap.is-open .wuling-quickaccess-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
}

.wuling-quickaccess-link {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: clamp(10px, 0.625vw, 12px) clamp(24px, 1.6667vw, 32px);
  border: 0;
  background: transparent;
  font-family: var(--wuling-font-family);
  font-size: clamp(13px, 0.8333vw, 16px);
  font-weight: 500;
  line-height: normal;
  color: #203746;
  text-align: right;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.wuling-quickaccess-link:hover,
.wuling-quickaccess-link:focus-visible {
  background: rgba(138, 192, 234, 0.15);
  text-decoration: none;
  outline: none;
}

.wuling-quickaccess-top-icon {
  width: clamp(19px, 1.25vw, 24px);
  height: auto;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .wuling-quickaccess-btn,
  .wuling-quickaccess-panel,
  .wuling-quickaccess-text {
    transition: none;
  }
}
