.VPNav {
  display: none;
}
.VPLocalNav {
  top: 59px !important;
}

.VPDoc {
  padding-top: 80px !important;
}

.vp-doc strong {
  color: #000;
}
/* ==================== 导航栏容器 ==================== */

.fp-header-wrap {
  position: relative;
  z-index: 900;
  overflow: visible;
}

/* 有公告时菜单区仍 60px，公告浮层不占文档流 */
.fp-header-wrap.fp-has-announcement {
  height: 60px !important;
}

.fp-header {
  width: 100%;
  height: 60px;
  background-color: #000;
  z-index: 1001;
  position: relative;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ==================== 系统公告栏 ==================== */
.fp-announcement-bar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(180deg, #fff8f5 0%, #fff5f2 55%, #ffefe8 100%);
  border: 1px dashed #f0d4c8;
  border-left: none;
  border-right: none;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
}

.fp-announcement-bar--info {
  background: linear-gradient(180deg, #fff8f5 0%, #fff5f2 55%, #ffefe8 100%);
}

.fp-announcement-bar--update {
  background: linear-gradient(180deg, #eff6ff 0%, #fff0e8 55%, #ffe8dc 100%);
}

.fp-announcement-bar--activity {
  background: linear-gradient(180deg, #fff9f0 0%, #fff5e8 55%, #ffeed8 100%);
}

.fp-announcement-bar--stock {
  background: linear-gradient(180deg, #f5fff8 0%, #effaf3 55%, #e8f5ee 100%);
  border-color: #c8e8d4;
}

.fp-announcement-bar--warning {
  background: linear-gradient(180deg, #fffaf0 0%, #fff5e0 55%, #ffefcc 100%);
  border-color: #f0ddb8;
}

.fp-announcement-bar--danger {
  background: linear-gradient(180deg, #fff5f5 0%, #ffecec 55%, #ffe0e0 100%);
  border-color: #f0c8c8;
}

.fp-announcement-bar--maintenance {
  background: linear-gradient(180deg, #f6f8ff 0%, #eef2fa 55%, #e6ebf5 100%);
  border-color: #c8d4e8;
}

.fp-announcement-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 16px;
}

.fp-announcement-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.fp-announcement-slide.fp-announcement-slide--in {
  opacity: 1;
  transform: translateY(0);
}

.fp-announcement-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}

.fp-announcement-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(920px, calc(100vw - 120px));
  flex-wrap: wrap;
}

.fp-announcement-content--link {
  cursor: pointer;
  transition: filter 0.2s ease;
}

.fp-announcement-content--link:hover .fp-announcement-text {
  color: #ff602e;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 96, 46, 0.45);
}

.fp-announcement-content--link:hover .fp-announcement-icon {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 8px rgba(255, 96, 46, 0.2);
}

.fp-announcement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #fff 0%, #ffe8df 100%);
  border: 1px solid rgba(255, 96, 46, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 4px rgba(255, 96, 46, 0.1);
  color: #ff602e;
}

.fp-announcement-icon svg {
  width: 16px;
  height: 16px;
}

.fp-announcement-icon--info { color: #5c6bc0; background: linear-gradient(145deg, #fff 0%, #e8ebff 100%); border-color: rgba(92, 107, 192, 0.25); }
.fp-announcement-icon--update { color: #ff602e; }
.fp-announcement-icon--activity { color: #f57c00; background: linear-gradient(145deg, #fff 0%, #fff0d6 100%); border-color: rgba(245, 124, 0, 0.25); }
.fp-announcement-icon--stock { color: #2e7d52; background: linear-gradient(145deg, #fff 0%, #e0f5ea 100%); border-color: rgba(46, 125, 82, 0.25); }
.fp-announcement-icon--warning { color: #e65100; background: linear-gradient(145deg, #fff 0%, #fff3d6 100%); border-color: rgba(230, 81, 0, 0.25); }
.fp-announcement-icon--danger { color: #c62828; background: linear-gradient(145deg, #fff 0%, #ffe0e0 100%); border-color: rgba(198, 40, 40, 0.25); }
.fp-announcement-icon--maintenance { color: #455a64; background: linear-gradient(145deg, #fff 0%, #e8edf2 100%); border-color: rgba(69, 90, 100, 0.25); }

.fp-announcement-text {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  line-height: 1.35;
  text-align: center;
  transition: color 0.2s;
  flex: 1 1 160px;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.fp-announcement-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: #c43d12;
  background: rgba(255, 96, 46, 0.1);
  border: 1px solid rgba(255, 96, 46, 0.28);
  pointer-events: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.fp-announcement-cta__arrow {
  font-size: 13px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.fp-announcement-content--link:hover .fp-announcement-cta {
  background: rgba(255, 96, 46, 0.16);
  border-color: rgba(255, 96, 46, 0.38);
}

.fp-announcement-content--link:hover .fp-announcement-cta__arrow {
  transform: translateX(2px);
}

.fp-announcement-countdown-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.fp-announcement-countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.fp-announcement-clock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff602e;
  flex-shrink: 0;
}

.fp-announcement-divider {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: rgba(255, 96, 46, 0.35);
  flex-shrink: 0;
}

.fp-announcement-timer {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.fp-announcement-timer-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 4px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #ffe8df 100%);
  border: 1px solid rgba(255, 96, 46, 0.35);
  box-shadow: inset 0 1px 3px rgba(255, 96, 46, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fp-announcement-timer-digit {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #c43d12;
  line-height: 1;
}

.fp-announcement-timer-sep {
  font-size: 12px;
  font-weight: 700;
  color: #ff602e;
  line-height: 1;
  padding: 0;
}

.fp-announcement-bar--danger .fp-announcement-clock-icon,
.fp-announcement-bar--danger .fp-announcement-timer-sep {
  color: #c62828;
}

.fp-announcement-bar--danger .fp-announcement-divider {
  background: rgba(198, 40, 40, 0.35);
}

.fp-announcement-bar--danger .fp-announcement-timer-box {
  border-color: rgba(198, 40, 40, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #ffe0e0 100%);
}

.fp-announcement-bar--danger .fp-announcement-timer-digit {
  color: #b71c1c;
}

.fp-announcement-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fp-announcement-popup {
  background: #fff;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.fp-announcement-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.fp-announcement-popup-header h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.fp-announcement-popup-close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  padding: 0 4px;
}

.fp-announcement-popup-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  white-space: pre-wrap;
}

@media (max-width: 768px) {
  .fp-announcement-inner {
    padding: 5px 10px;
  }

  .fp-announcement-content {
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    max-width: 100% !important;
  }

  .fp-announcement-main {
    flex: 1 1 0;
    min-width: 0;
    max-width: none !important;
    gap: 6px;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    text-align: left;
  }

  .fp-announcement-text {
    font-size: 12px;
    flex-basis: auto;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.1;
  }

  /* 可点击：仅保留箭头 */
  .fp-announcement-content--link .fp-announcement-cta__label {
    display: none;
  }

  .fp-announcement-content--link .fp-announcement-cta {
    flex-shrink: 0;
    margin-left: 0;
    padding: 3px 7px;
    align-self: center;
    margin-top: 1px;
  }

  /* 紧凑型倒计时 */
  .fp-announcement-countdown-wrap {
    gap: 4px;
    flex-shrink: 0;
  }

  .fp-announcement-countdown {
    gap: 3px;
  }

  .fp-announcement-clock-icon svg {
    width: 12px;
    height: 12px;
  }

  .fp-announcement-divider {
    height: 14px;
  }

  .fp-announcement-timer-box {
    min-width: 20px;
    height: 18px;
    padding: 0 2px;
    border-radius: 4px;
  }

  .fp-announcement-timer-digit {
    font-size: 10px;
  }

  .fp-announcement-timer-sep {
    font-size: 10px;
  }

  .fp-announcement-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
  }

  .fp-announcement-icon svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
}

.fp-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fp-header-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==================== Logo样式 ==================== */
.fp-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.fp-logo-link {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 100%;
  text-decoration: none;
}

.fp-logo-img {
  height: 38px;
  width: 38px;
  display: block;
}

.fp-logo-word {
  color: #f8fafc;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.45px;
  line-height: 1;
}

/* ==================== 主导航菜单 ==================== */
.fp-nav-menu {
  flex: 1;
  margin-left: 40px;
}

.fp-nav-list {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.fp-nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.fp-nav-item > a, .fp-nav-item > span {
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  width: auto;
  height: 60px;
  padding: 0 15px; /* 增加左右内边距 */
  transition: color 0.2s ease;
  position: relative;
  justify-content: center;
}

.fp-nav-item > a:hover, .fp-nav-item > span:hover {
  color: #fff;
}

/* ==================== 下拉菜单系统 ==================== */
/* 主菜单下拉箭头 - 增加间距 */
.fp-nav-item.has-dropdown > a,
.fp-dropdown-toggle {
  padding-right: 32px; /* 从28px增加到32px */
}

.fp-nav-item.has-dropdown > a::after,
.fp-dropdown-toggle::after {
  content: "";
  position: absolute;
  right: 0px; /* 从12px增加到16px */
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #fff;
  transition: transform 0.3s ease;
}

.fp-nav-item.has-dropdown > a.fp-active::after,
.fp-dropdown-toggle.fp-active::after {
  transform: translateY(-50%) rotate(180deg);
}

/* 下拉菜单面板 */
.fp-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  border-radius: 4px;
  padding: 8px 0;
  display: none;
  z-index: 1001;
}

.fp-dropdown-menu.fp-show {
  display: block;
}

.fp-dropdown-item {
  display: block;
  padding: 10px 16px;
  color: rgba(117,117,117,0.8);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  line-height: normal;
}

.fp-dropdown-item:hover, .fp-nav-item:hover .fp-dropdown-toggle {
  cursor: pointer;
  background-color: rgba(255,255,255,.2);
  /*text-decoration: underline;*/
  text-decoration-color: #fff; /* 与品牌色一致 */
  text-underline-offset: 4px; /* 下划线距离文字间距 */
  transition: text-decoration 0.2s ease; /* 平滑过渡效果 */
}

.fp-nav-item > a.fp-dropdown-toggle, .fp-nav-item > span.fp-dropdown-toggle {
  padding-right: 30px;
}

.fp-nav-item > a.fp-dropdown-toggle::after, .fp-nav-item > span.fp-dropdown-toggle::after {
  right: 15px;
}

.fp-dropdown-menu .fp-dropdown-item:hover {
  text-decoration-color: #999;
  background-color: #f5f5f5;
}

.fp-dropdown-item-status {
  display: inline-block;
  border-radius: 8px;
  color: #f6f6f6;
  font-size: 12px;
  font-weight: 600;
  padding: 7px;
  margin-left: 10px;
  line-height: 1;
}
.fp-dropdown-item-status.item-hot {
  background: rgb(255, 103, 103)
}

.fp-dropdown-item-status.item-new {
  background: linear-gradient(90deg, rgb(47, 203, 203) 1%, rgb(139, 61, 255) 100%);
}

.fp-dropdown-menu-grouped {
  padding: 15px;
  width: max-content;
  max-height: 700px;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: flex-start;
  transform: translateX(-45%);
  overflow-y: hidden;
  overflow-x: auto;
  max-width: calc(100vw - 100px);
}
.fp-dropdown-menu-grouped::-webkit-scrollbar {
  display: none;
}
.fp-dropdown-menu.fp-dropdown-menu-grouped.fp-show {
  display: flex;
}

.fp-dropdown-submenu {
  margin-bottom: 0;
  flex: 0 0 auto;
  min-width: 280px;
  max-width: 300px;
}

.fp-dropdown-submenu-group {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.group-break-column {
  break-after: column;
}

.fp-dropdown-group-title {
  color: #666;
  padding: 5px 15px;
  font-size: 15px;
  margin-top: 0;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
  font-weight: bold;
}

/* 用户菜单特殊样式 - 增加间距 */
.fp-user-menu .fp-dropdown-toggle {
  padding-right: 28px; /* 从24px增加到28px */
}

.fp-user-menu .fp-dropdown-menu {
  right: 0;
  left: auto;
}

/* ==================== 语言选择器 ==================== */
.fp-language-item {
  margin-left: 10px;
}

.fp-language-switcher {
  position: relative;
}

.fp-language-select {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 6px 24px 6px 12px;
  font-size: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.fp-language-select:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.fp-language-select option {
  color: #000;
}

/* ==================== 移动端适配 ==================== */
/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
  .fp-nav-menu {
    position: fixed;
    top: 60px; /* 从顶部开始，紧贴导航栏 */
    right: 0;
    width: 60%;
    height: calc(100vh - 60px); /* 减去导航栏高度 */
    background-color: #000;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0; /* 移除内边距，使菜单紧贴顶部 */
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    z-index: 999;
    transform: translateX(100%)
  }

  .fp-nav-menu.fp-active {
    transform: translateX(0)
  }

  .fp-nav-list {
    flex-direction: column;
    align-items: stretch;
    justify-content: start;
    gap: 0;
    padding-top: 0; /* 移除顶部内边距 */
  }

  .fp-nav-item {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* 添加分割线 */
  }

  .fp-nav-item > a {
    padding: 16px 24px; /* 增加垂直内边距 */
    height: auto;
    justify-content: space-between; /* 文字和箭头分居两侧 */
  }

  /* 移动端下拉箭头调整 */
  .fp-nav-item.has-dropdown > a::after,
  .fp-dropdown-toggle::after {
    right: 24px;
    transform: translateY(-50%) rotate(0deg); /* 初始状态箭头朝下 */
  }

  .fp-nav-item.has-dropdown > a.fp-active::after,
  .fp-dropdown-toggle.fp-active::after {
    transform: translateY(-50%) rotate(180deg); /* 激活状态箭头朝上 */
  }

  /* 下拉菜单面板 - 移动端样式 */
  .fp-dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    background-color: rgba(0,0,0,0.2); /* 更深的背景色 */
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1003;
  }

  .fp-dropdown-menu.fp-show {
    max-height: 2000px; /* 足够大的值确保展开 */
    background-color: #f5f5f5;
    gap: 10px;
  }

  .fp-dropdown-menu-grouped {
    transform: translateX(0);
  }

  .fp-dropdown-item {
    color: #333;
    padding: 14px 32px;
    border-top: 1px solid rgba(255,255,255,0.05); /* 子菜单项分割线 */
  }

  /* 二级菜单特殊处理 - 在右侧展示 */
  .fp-dropdown-submenu > .fp-dropdown-menu {
    position: static;
    width: 90%; /* 稍微缩进 */
    margin-left: 10%;
    background-color: rgba(0,0,0,0.3); /* 更深一级的背景色 */
  }

  .fp-dropdown-submenu > a::after {
    border-left-color: #fff;
    right: 24px;
    transform: translateY(-50%) rotate(90deg); /* 初始状态箭头朝右 */
  }

  .fp-dropdown-submenu > a.fp-active::after {
    transform: translateY(-50%) rotate(270deg); /* 激活状态箭头朝下 */
  }

  .fp-dropdown-group-title {
    border-bottom: 1px solid #ccc;
    padding: 14px 32px;
  }

  /* 语言选择器调整 */
  .fp-language-item {
    margin-left: 0;
  }

  .fp-language-select {
    width: 100%;
    max-width: 150px;
    padding: 8px 36px 8px 16px;
  }
}

/* ==================== 移动菜单按钮动画优化 ==================== */
.fp-mobile-menu-btn {
  transition: transform 0.3s ease;
}

.fp-mobile-menu-btn.fp-active {
  transform: rotate(90deg);
}

.fp-mobile-menu-btn span {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 移动菜单按钮 ==================== */
.fp-mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.fp-mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #fff;
  margin: 3px 0;
  transition: all 0.3s ease;
}

.fp-mobile-menu-btn.fp-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.fp-mobile-menu-btn.fp-active span:nth-child(2) {
  opacity: 0;
}

.fp-mobile-menu-btn.fp-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .fp-mobile-menu-btn {
    display: flex;
  }
  
  body.fp-mobile-menu-open {
    overflow: hidden;
  }
}

/* 用户菜单特殊样式 */
.fp-user-menu-item .fp-dropdown-toggle {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fp-user-menu-item .fp-user-email {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==================== Quick Share ==================== */
.fp-quick-share-btn {
  position: fixed;
  top: calc(106px + env(safe-area-inset-top));
  right: 20px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(37, 99, 235, 0.32);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.24);
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.fp-quick-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.32);
  filter: saturate(1.05);
}

.fp-quick-share-btn:disabled {
  cursor: wait;
}

.fp-quick-share-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.fp-quick-share-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(-2px);
}

.fp-quick-share-btn-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.fp-quick-share-btn-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.fp-quick-share-btn.is-loading .fp-quick-share-btn-icon-wrap::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: fp-share-spin 0.8s linear infinite;
}

/* ==================== Quick Feedback ==================== */
.fp-quick-feedback-btn {
  position: fixed;
  top: calc(106px + env(safe-area-inset-top) + 52px);
  right: 20px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(37, 99, 235, 0.32);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.18);
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.fp-quick-feedback-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
  filter: saturate(1.05);
}

.fp-quick-feedback-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.fp-quick-feedback-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(-2px);
}

.fp-quick-feedback-btn-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.fp-quick-feedback-btn-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.fp-share-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.fp-share-modal-overlay.fp-show {
  opacity: 1;
  pointer-events: auto;
}

.fp-share-modal {
  position: relative;
  width: min(100%, 450px);
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  color: #111827;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.18s ease;
}

.fp-share-modal-overlay.fp-show .fp-share-modal {
  transform: translateY(0) scale(1);
}

.fp-share-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.fp-share-modal-close:hover {
  opacity: 1;
  background: rgba(148, 163, 184, 0.12);
}

.fp-share-modal-title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
}

.fp-share-modal-subtitle {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(71, 85, 105, 0.92);
}

.fp-share-link-group {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.fp-share-link-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  outline: none;
  background: #f8fafc;
  color: inherit;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.fp-share-copy-btn {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  padding: 0;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb 0%, #ff944d 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fp-share-copy-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.fp-share-copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.28);
}

.fp-share-actions-grid {
  display: flex;
  gap: 10px;
}

.fp-share-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 14px;
  width: 44px;
  height: 44px;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.fp-share-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.fp-share-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.fp-share-action-twitter .fp-share-action-icon {
  background: #111827;
}

.fp-share-action-telegram .fp-share-action-icon {
  background: linear-gradient(135deg, #2aabee 0%, #58c6ff 100%);
}

.fp-share-action-facebook .fp-share-action-icon {
  background: linear-gradient(135deg, #1877f2 0%, #3b8cff 100%);
}

.fp-share-action-reddit .fp-share-action-icon {
  background: linear-gradient(135deg, #ff6a2b 0%, #ff9058 100%);
}

.fp-share-action-email .fp-share-action-icon {
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
}

body.fp-share-modal-open {
  overflow: hidden;
}

@keyframes fp-share-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .fp-quick-share-btn {
    top: calc(106px + env(safe-area-inset-top));
    right: 12px;
    width: 48px;
    height: 48px;
  }

  .fp-quick-feedback-btn {
    top: calc(106px + env(safe-area-inset-top) + 52px);
    right: 12px;
    width: 48px;
    height: 48px;
  }

  .fp-share-modal-overlay {
    padding: 16px;
    align-items: flex-start;
  }

  .fp-share-modal {
    margin-top: calc(72px + env(safe-area-inset-top));
    padding: 22px 16px 16px;
    border-radius: 18px;
  }

  .fp-share-modal-title {
    font-size: 22px;
    padding-right: 28px;
  }

  .fp-share-actions-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .fp-share-action {
    min-height: 48px;
    height: 48px;
  }
}

@media (max-width: 420px) {
  .fp-share-modal {
    width: 100%;
    padding: 22px 16px 16px;
  }

  .fp-share-modal-title {
    font-size: 20px;
  }

  .fp-share-link-input {
    font-size: 14px;
  }
}
