﻿/* ==========================================================================
   自有组件样式：叠加在原站样式表之上，不改动原站视觉基础
   - 根字号 64px，与原站一致
   - button 重置（原站用 div 实现按钮，这里换成语义化 button）
   - 语言切换 / 设备弹窗 / 提示条 / 锚点容器
   ========================================================================== */
html { font-size: 64px; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button.viewItem-tF7Y7p {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

button.navigation-evBAs1,
button.mainButton-nsDRHo,
button.iconAndName-vNUNQC {
  font-family: inherit;
}

button.mainButton-nsDRHo { border: 0; }

.featureAnchor { width: 100%; }
.cardMediaButton-CBuxuE { position: relative; }

/* 英文标签更长，禁止导航项折行以保持胶囊布局；品牌名保持横排 */
.navigationViewList-JSOXKm .viewItem-tF7Y7p { white-space: nowrap; }
.iconAndName-vNUNQC .name-wRR1cY { white-space: nowrap; flex-shrink: 0; }

/* ---------- 语言切换：页脚内联（与原站页脚同风格） ---------- */
.langSwitch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.langItem {
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  cursor: pointer;
  transition: color .18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.langSwitch .langItem:hover { color: #06f; }
.langSwitch .langItem.is-active { color: #06f; }
.langSwitch .langDivider { color: rgba(0, 0, 0, .35); }

/* 移动端 / 聚合页浮动切换 */
.langSwitchFloat {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 4px 14px rgba(74, 90, 110, .12);
  font-size: 13px;
  line-height: 1;
  color: rgba(0, 0, 0, .6);
}

.langSwitchFloat .langItem { font-size: 13px; color: rgba(0, 0, 0, .55); }
.langSwitchFloat .langItem:hover { color: #1f2329; }
.langSwitchFloat .langItem.is-active { color: #1f2329; font-weight: 600; }
.langSwitchFloat .langDivider { width: 1px; height: 12px; background: rgba(0, 0, 0, .12); }

@media screen and (max-width: 799px) {
  .langSwitchFloat { top: 12px; right: 12px; height: 28px; padding: 0 10px; }
  .langSwitchFloat .langItem { font-size: 12px; }
}

/* ---------- 设备选择弹窗 ---------- */
.dlgMask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(31, 35, 41, .38);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .22s ease;
}

.dlgMask.is-open { opacity: 1; }

.dlgBox {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 26px 24px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(31, 35, 41, .22);
  transform: translateY(10px) scale(.98);
  transition: transform .22s ease;
}

.dlgMask.is-open .dlgBox { transform: translateY(0) scale(1); }
.dlgTitle { font-size: 18px; font-weight: 600; color: #1f2329; }
.dlgDesc { margin-top: 8px; font-size: 13px; line-height: 1.6; color: rgba(31, 35, 41, .6); }
.dlgActions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.dlgBtn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.dlgBtn:hover {
  border-color: rgba(0, 102, 255, .45);
  background: rgba(0, 102, 255, .04);
  box-shadow: 0 4px 14px rgba(0, 102, 255, .1);
}

.dlgBtnIcon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.dlgIconWin {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23006FFC'%3E%3Cpath d='M3 5.4 10.5 4.6v7.1H3V5.4Zm8.5-1L21 3v8.7h-9.5V4.4ZM3 12.7h7.5v7.1L3 19v-6.3Zm8.5 0H21V21l-9.5-1.3v-7Z'/%3E%3C/svg%3E");
}

.dlgIconMac {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231f2329'%3E%3Cpath d='M16.6 12.7c0-2.3 1.9-3.4 2-3.5-1.1-1.6-2.8-1.8-3.4-1.8-1.4-.1-2.8.9-3.5.9-.7 0-1.8-.9-3-.8-1.5 0-3 .9-3.8 2.3-1.6 2.8-.4 7 1.2 9.3.8 1.1 1.7 2.3 2.9 2.2 1.2 0 1.6-.7 3-.7s1.8.7 3 .7c1.3 0 2.1-1.1 2.9-2.2.9-1.3 1.3-2.5 1.3-2.6 0 0-2.5-1-2.6-3.8ZM14.3 5.9c.6-.8 1-1.8.9-2.9-.9 0-2 .6-2.6 1.4-.6.7-1.1 1.7-.9 2.8 1 .1 2-.5 2.6-1.3Z'/%3E%3C/svg%3E");
}

.dlgBtnText { display: flex; flex-direction: column; gap: 3px; }
.dlgBtnText b { font-size: 14px; font-weight: 600; color: #1f2329; }
.dlgBtnText i { font-style: normal; font-size: 12px; color: rgba(31, 35, 41, .55); }

.dlgClose {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .05);
  color: rgba(31, 35, 41, .6);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.dlgClose:hover { background: rgba(0, 0, 0, .1); }

/* ---------- 提示条 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  z-index: 200;
  transform: translate(-50%, 12px);
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(31, 35, 41, .92);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(31, 35, 41, .24);
  opacity: 0;
  transition: opacity .26s ease, transform .26s ease;
}

.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

