/* 下载中心插件容器：用于短代码输出区域 */
.yunyi-download {
  width: 100%;
}

/* 下载中心空态提示：用于未配置下载地址时展示 */
.yunyi-download-empty {
  width: 100%;
  text-align: center;
  padding: 24px 16px;
  color: #6b7280;
  background: #f9fafb;
  border: 1px dashed rgba(107, 114, 128, 0.4);
  border-radius: 16px;
}

/* 下载中心卡片容器：可用于外层布局 */
.yunyi-download .downloadCard {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* 下载卡片头部：用于标题区 */
.yunyi-download .downloadCard__head {
  text-align: center;
}

.yunyi-download .downloadCard__head h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

/* 下载卡片标签：用于强调文字 */
.yunyi-download .cardLabel {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.12);
}

/* 下载卡片描述：用于副标题 */
.yunyi-download .cardDesc {
  color: #4b4b4b;
  line-height: 1.6;
}

/* 下载平台入口区域：用于平台入口圆形按钮 */
.yunyi-download .downloadType {
  padding: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  border-radius: 32px;
}

.yunyi-download .downloadType .item {
  width: 130px;
  height: 130px;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 50%;
  line-height: 1.5em;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 107, 107, 0.18);
  box-shadow: 0 20px 35px rgba(255, 107, 107, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.yunyi-download .downloadType .item .icon {
  transition: transform 0.35s ease;
  width: 42px;
  height: 42px;
  margin-bottom: 5px;
}

.yunyi-download .downloadType .item .text {
  margin-top: 3px;
  font-weight: 600;
  color: #1f1f1f;
}

/* 当前设备标签：仅在 active 时显示 */
.yunyi-download .downloadType .item .current {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(120deg, #ff8a5c, #ff6b6b);
  display: none;
}

.yunyi-download .downloadType .item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 25px 35px rgba(255, 107, 107, 0.18);
}

.yunyi-download .downloadType .item:hover .icon {
  transform: translateY(-3px);
}

/* 下载入口焦点样式：去掉鼠标点击时的默认黑色外边框，保留键盘可见性 */
.yunyi-download .downloadType .item:focus {
  outline: none;
}

.yunyi-download .downloadType .item:focus-visible {
  outline: 2px solid #ff6b6b;
  outline-offset: 4px;
}

.yunyi-download .downloadType .item.active {
  border-color: #ff6b6b;
  box-shadow: 0 25px 35px rgba(255, 107, 107, 0.2);
}

.yunyi-download .downloadType .item.active .current {
  display: block;
}

/* 微信内提示遮罩：点击后关闭 */
.yunyi-download .wechatTip {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
}

.yunyi-download .wechatTip.is-visible {
  display: block;
}

.yunyi-download .wechatTip > img {
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  max-width: 100%;
}

/* 弹窗容器：用于 macOS/Android/iOS 下载弹窗 */
.yunyi-download .yunyi-download-dialog {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.yunyi-download .yunyi-download-dialog.is-visible {
  display: flex;
}

/* 弹窗遮罩：用于点击关闭 */
.yunyi-download .yunyi-download-dialog__mask {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

/* 弹窗主体：用于显示标题和内容 */
.yunyi-download .yunyi-download-dialog__panel {
  position: relative;
  width: 450px;
  max-width: 92vw;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

/* 弹窗头部：对应 van-dialog header */
.yunyi-download .yunyi-download-dialog__header {
  padding: 18px 20px 0;
  font-weight: 600;
  font-size: 18px;
  text-align: center;
}

/* 弹窗内容区：用于摆放二维码与按钮 */
.yunyi-download .yunyi-download-dialog__content {
  padding: 30px 18px 20px;
}

/* 弹窗底部：用于关闭按钮 */
.yunyi-download .yunyi-download-dialog__footer {
  padding: 0 20px 20px;
  display: flex;
  justify-content: center;
}

.yunyi-download .yunyi-download-dialog__close {
  min-width: 120px;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-weight: 600;
}

/* 弹窗内下载按钮：与 Vue 样式保持一致 */
.yunyi-download .downloadBtn {
  margin-top: 10px;
  background: linear-gradient(135deg, #ff9966, #ff5e62);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 22px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 20px 30px rgba(255, 94, 98, 0.25);
}

.yunyi-download .downloadBtn .icon {
  width: 30px;
  height: 30px;
  margin-right: 15px;
  color: #fff;
}

.yunyi-download .downloadBtn .right {
  font-size: 14px;
  color: #fff;
}

.yunyi-download .downloadBtn .right .title {
  font-size: 16px;
}

.yunyi-download .downloadBtn .right .desc {
  margin-top: 5px;
}

/* 弹窗二维码区域：用于 Android/iOS 二维码布局 */
.yunyi-download .dialog-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.yunyi-download .dialog-qr img {
  width: 140px;
  height: 140px;
}

/* 弹窗内容布局：对应原内联样式结构 */
.yunyi-download .dialog-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
