@import url("center-theme.css");
@import url("ui-btn.css");
@import url("cart.css");

:root {
  --btn-radius: 4px;
  --btn-height: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  color: #333;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

img {
  max-width: 100%;
  border: 0;
  vertical-align: middle;
}

main {
  display: block;
}
.text-center {
  text-align: center;
}
.section-title a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.section-title a:hover,
.section-title a:focus {
  color: #f57c2f;
}
.page-main {
  min-height: 0;
}

/* Page fold for search (demo 4) */
.page {
  position: relative;
  -webkit-perspective: 1200px;
  perspective: 1200px;
  -webkit-perspective-origin: 50% -50%;
  perspective-origin: 50% -50%;
}

.page__folder {
  background: #fff;
}

.page__main {
  position: relative;
  z-index: 4;
  background: #fff;
  min-height: 100%;
}

.js .page__folder {
  -webkit-transition: -webkit-transform 1s cubic-bezier(0.2, 1, 0.3, 1);
  transition: transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.page--move {
  pointer-events: none;
}

.page--move .page__main {
  -webkit-transform: translate3d(0, 75vh, -150px);
  transform: translate3d(0, 75vh, -150px);
}
/* Header */
/* 滚动固定：header.html 由 include 注入到 #header，令该占位容器吸顶即可整页固定 */
#header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header {
  background: transparent;
  -webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.10);
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.10);
  position: relative;
  z-index: 20;
}

/* Header 背景由 ::before 承载，滚动吸顶后切换为毛玻璃 */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: #fff;
  -webkit-transition: background 0.25s ease, -webkit-backdrop-filter 0.25s ease;
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-frosted::before {
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(17px);
  backdrop-filter: blur(17px);
}

/* 悬停（与滚动相同的毛玻璃背景） */
.site-header:hover::before {
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(17px);
  backdrop-filter: blur(17px);
}

/* 搜索打开时关闭毛玻璃：覆盖滚动吸顶与 hover 的毛玻璃效果 */
.site-header.search-open::before {
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.header-inner {
  height: 72px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.logo {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  line-height: 36px;
  text-indent: -999em;
  width:220px;
  height: 62px;
}



.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  margin-left: auto;
  margin-right: 8px;
}

.menu-toggle-bar {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 5px auto;
  background: #333;
  -webkit-transition: -webkit-transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.site-header.is-open .menu-toggle-bar:first-child {
  -webkit-transform: translateY(7px) rotate(45deg);
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .menu-toggle-bar:first-child + .menu-toggle-bar {
  filter: alpha(opacity=0);
  opacity: 0;
}

.site-header.is-open .menu-toggle-bar:first-child + .menu-toggle-bar + .menu-toggle-bar {
  -webkit-transform: translateY(-7px) rotate(-45deg);
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  text-align: center;
  -webkit-transition: opacity 0.28s ease, visibility 0.28s ease;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.nav-list {
  display: inline-block;
  vertical-align: middle;
}

.nav-item {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.nav-link {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  height: 72px;
  padding: 0 14px;
  font-size: 15px;
  color: #333;
  white-space: nowrap;
}

.nav-icon {
  display: block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  -ms-flex: 0 0 18px;
  flex: 0 0 18px;
  position: relative;
  top: 1px;
}

.nav-text {
  position: relative;
  display: block;
  line-height: 18px;
  height: 18px;
}

.nav-item.active .nav-link::after {
  content: "";
  display: block;
  position: absolute;
  left: 38px;
  right: 14px;
  bottom: 10px;
  height: 10px;
  border-radius: 2px 2px 0 0;
  background: var(--ui-color-primary);
  background-image: -webkit-linear-gradient(left, var(--ui-color-primary) 4%, var(--ui-color-primary-soft) 88%);
  background-image: linear-gradient(270deg, var(--ui-color-primary-soft) 12%, var(--ui-color-primary) 96%);
  background-image: linear-gradient(270deg, var(--ui-color-primary-hover) 12%, var(--ui-color-primary) 96%);
  background: url("../images/nav-active.png") no-repeat center center;
  background-size: 28px 10px;
}

.header-actions {
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
}

.header-search {
  position: relative;
  z-index: 22;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

.header-search__close {
  display: none;
  font-size: 28px;
  line-height: 36px;
  color: #333;
  font-weight: 200;
}

.site-header.search-open .header-search__icon {
  display: none;
}

.site-header.search-open .header-search__close {
  display: inline-block;
}

.header-search-mask {
  position: fixed;
  z-index: 19;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  filter: alpha(opacity=0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-transition: opacity 0.32s ease, visibility 0s linear 0.32s;
  transition: opacity 0.32s ease, visibility 0s linear 0.32s;
}

.header-search-mask.is-open {
  filter: alpha(opacity=45);
  opacity: 0.45;
  visibility: visible;
  pointer-events: auto;
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
}

.header-search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 21;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  background: #fff;
  -webkit-transition: max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.38s;
  transition: max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.38s;
}

.site-header.search-open .header-search-panel {
  max-height: 160px;
  visibility: visible;
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
  border-top: 1px solid #eee;
}

.header-search-panel__inner {
  height: auto;
  min-height: 0;
  padding: 8px 0 28px;
}

.header-search-panel__form {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
}

.header-search-panel__input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 48px 0 20px;
  border: 0;
 
  background: transparent;
  color: #333;
  font-family: inherit;
  font-size: 20px;
  line-height: 48px;
  outline: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background-color: #f5f5f5;
  border-radius: 24px;
}

.header-search-panel__input::-webkit-input-placeholder {
  color: #bbb;
}

.header-search-panel__input::-moz-placeholder {
  color: #bbb;
  opacity: 1;
}

.header-search-panel__input:-ms-input-placeholder {
  color: #bbb;
}

.header-search-panel__submit {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  background: transparent;
}

.header-search-panel__submit img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}

@media screen and (max-width: 767px) {
  .header-search-panel__input {
    height: 44px;
    font-size: 16px;
    line-height: 44px;
  }
  .header-search-panel__submit {
    width: 44px;
    height: 44px;
    line-height: 44px;
  }
}

@media screen and (min-width: 992px) {
  .site-header.search-open .nav {
    visibility: hidden;
    pointer-events: none;
    filter: alpha(opacity=0);
    opacity: 0;
  }
}

/* 一键回到顶部（页面右下角悬浮按钮） */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 26;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  cursor: pointer;
  -webkit-box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.16);
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.16);
  filter: alpha(opacity=0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-transform: translateY(10px);
  transform: translateY(10px);
  -webkit-transition: opacity 0.28s ease, visibility 0s linear 0.28s, -webkit-transform 0.28s ease, -webkit-box-shadow 0.28s ease;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s, transform 0.28s ease, box-shadow 0.28s ease;
}

.back-to-top:hover {
  background: #fff;
  -webkit-box-shadow: 0 6px 18px 0 rgba(0, 0, 0, 0.22);
  box-shadow: 0 6px 18px 0 rgba(0, 0, 0, 0.22);
}

.back-to-top.is-visible {
  filter: alpha(opacity=100);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  -webkit-transform: translateY(0);
  transform: translateY(0);
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
}

.back-to-top svg {
  display: block;
}

@media screen and (max-width: 991px) {
  .back-to-top {
    right: 16px;
    bottom: 20px;
    width: 40px;
    height: 40px;
  }
}

/* 可拖拽悬浮图标按钮（默认位于“回到顶部”上方） */
.float-icon-btn {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 26;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -ms-touch-action: none;
  touch-action: none;
  -webkit-filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.18));
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.18));
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
  background: rgba(255, 255, 255, 0.95);
    color: #333;
    cursor: pointer;
    -webkit-box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.16);
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.16);
    border-radius: 50%;
}

.float-icon-btn img {
  display: block;
  width: 70%;
  height: 70%;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.float-icon-btn:hover {
  -webkit-transform: scale(1.06);
  transform: scale(1.06);
}

.float-icon-btn.is-dragging {
  cursor: -webkit-grabbing;
  cursor: grabbing;
  -webkit-transition: none;
  transition: none;
}

.float-icon-btn.is-dragging:hover {
  -webkit-transform: none;
  transform: none;
}

@media screen and (max-width: 991px) {
  .float-icon-btn {
    right: 16px;
    bottom: 72px;
    width: 40px;
    height: 40px;
  }
}

.icon-btn {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  margin-right: 8px;
  vertical-align: middle;
}

.icon-btn img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}

.icon-btn.btn-cart {
  position: relative;
  overflow: visible;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 0;
  border: 0;
  line-height: 0;
  background: transparent;
  cursor: pointer;
  vertical-align: middle;
}

.icon-btn.btn-cart img {
  display: block;
  width: 22px;
  height: 22px;
}

.icon-btn.btn-cart .cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  z-index: 2;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  pointer-events: none;
}

.icon-btn.btn-cart .cart-badge[hidden] {
  display: none;
}

.icon-btn.btn-cart.is-cart-bump {
  -webkit-animation: cart-bump 0.32s ease;
  animation: cart-bump 0.32s ease;
}

@-webkit-keyframes cart-bump {
  0% { -webkit-transform: scale(1); }
  40% { -webkit-transform: scale(1.18); }
  100% { -webkit-transform: scale(1); }
}

@keyframes cart-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.cart-flyer {
  position: fixed;
  z-index: 4000;
  border-radius: 8px;
  -o-object-fit: cover;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  -webkit-transition: left 0.62s cubic-bezier(0.22, 0.82, 0.2, 1), top 0.62s cubic-bezier(0.22, 0.82, 0.2, 1), width 0.62s cubic-bezier(0.22, 0.82, 0.2, 1), height 0.62s cubic-bezier(0.22, 0.82, 0.2, 1), opacity 0.2s ease 0.42s, -webkit-transform 0.62s cubic-bezier(0.22, 0.82, 0.2, 1);
  transition: left 0.62s cubic-bezier(0.22, 0.82, 0.2, 1), top 0.62s cubic-bezier(0.22, 0.82, 0.2, 1), width 0.62s cubic-bezier(0.22, 0.82, 0.2, 1), height 0.62s cubic-bezier(0.22, 0.82, 0.2, 1), opacity 0.2s ease 0.42s, transform 0.62s cubic-bezier(0.22, 0.82, 0.2, 1);
}

.cart-flyer.is-fly {
  -webkit-transform: translateZ(0) scale(0.35) rotate(12deg);
  transform: translateZ(0) scale(0.35) rotate(12deg);
  opacity: 0.25;
}

.login-btn {
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-align: center;
  align-items: center;
  height: 32px;
  padding: 0 16px 0 5px;
  border-radius: 16px;
  background: #ececec;
  color: #333;
  font-size: 15px;
  vertical-align: middle;
  white-space: nowrap;
}

.user-icon,
.login-btn .user-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 50%;
  object-fit: cover;
}

.login-btn span {
  display: inline-block;
  vertical-align: middle;
  max-width: 3em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.user-menu__dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 40;
  min-width: 148px;
  margin-top: 20px;
  padding: 8px 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* 填补按钮与面板之间的空隙，避免鼠标移入时 hover 断开导致菜单关闭 */
.user-menu__dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -20px; 
  height: 20px;
}

.user-menu.is-logged-in:hover .user-menu__dropdown,
.user-menu.is-logged-in.is-open .user-menu__dropdown,
.user-menu.is-logged-in:focus-within .user-menu__dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.user-menu:not(.is-logged-in) .user-menu__dropdown {
  display: none;
}

.user-menu__link {
  display: block;
  width: 100%;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.user-menu__link:hover,
.user-menu__link:focus {
  background: #f5f7f8;
  color: var(--ui-color-primary);
  outline: none;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 140px;
  margin-left: -70px;
  padding: 8px 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  visibility: hidden;
  filter: alpha(opacity=0);
  opacity: 0;
  pointer-events: none;
  -webkit-transform: translateY(-10px);
  transform: translateY(-10px);
  -webkit-transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.32s, -webkit-transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.32s, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  text-align: center;
  font-size: 15px;
  color: #333;
}

.dropdown a:hover {
  color: #333;
}

.nav-item:hover > .dropdown {
  visibility: visible;
  filter: alpha(opacity=100);
  opacity: 1;
  pointer-events: auto;
  -webkit-transform: translateY(0);
  transform: translateY(0);
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
}

/* Search overlay — demo 4 layout, light theme */
.search {
  display: none;
}

.js .search {
  display: block;
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  text-align: center;
  pointer-events: none;
}

.js .search--open {
  pointer-events: auto;
}

.btn--search-close {
  font-size: 36px;
  line-height: 1;
  color: #666;
  position: absolute;
  top: 24px;
  right: 28px;
  display: none;
  filter: alpha(opacity=0);
  opacity: 0;
  -webkit-transform: scale(0.8);
  transform: scale(0.8);
  -webkit-transition: opacity 0.5s, -webkit-transform 0.5s;
  transition: opacity 0.5s, transform 0.5s;
}

.js .btn--search-close {
  display: block;
}

.search--open .btn--search-close {
  filter: alpha(opacity=100);
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
}

.search__form {
  margin: 5em 0 0;
}

.js .search__form,
.js .search__info {
  filter: alpha(opacity=0);
  opacity: 0;
  -webkit-transform: translateY(150px);
  transform: translateY(150px);
  -webkit-transition: opacity 1s cubic-bezier(0.2, 1, 0.3, 1), -webkit-transform 1s cubic-bezier(0.2, 1, 0.3, 1);
  transition: opacity 1s cubic-bezier(0.2, 1, 0.3, 1), transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.js .search__info {
  -webkit-transform: translateY(20px);
  transform: translateY(20px);
}

.js .search--open .search__form,
.js .search--open .search__info {
  filter: alpha(opacity=100);
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.search__input {
  font-family: inherit;
  font-size: 48px;
  line-height: 1.2;
  display: inline-block;
  box-sizing: border-box;
  width: 75%;
  max-width: 900px;
  padding: 8px 0;
  color: #333;
  background: transparent;
  border: 0;
  border-bottom: 4px solid var(--ui-color-primary);
  outline: none;
}

.search__input::-webkit-input-placeholder {
  color: #bbb;
}

.search__input::-moz-placeholder {
  color: #bbb;
  opacity: 1;
}

.search__input:-ms-input-placeholder {
  color: #bbb;
}

.search__input::-ms-clear {
  display: none;
}

.search__info {
  display: block;
  width: 75%;
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 0;
  text-align: right;
  font-size: 13px;
  color: #999;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #2b2b2b 0%, #1e1e1e 100%);
  color: #fff;
  padding: 56px 0 0;
}

.footer-top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  -ms-flex: 1 1 300px;
  flex: 1 1 300px;
  max-width: 380px;
}

.footer-logo {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  color: #fff;
}

.footer-logo-mark {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background-color: #e8e8e8 !important;
  background-size: 150% auto !important;
}

.footer-logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}

.footer-contact {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 10px;
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}

.footer-contact-icon {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col {
  -ms-flex: 0 0 150px;
  flex: 0 0 150px;
}

.footer-col-title {
  position: relative;
  margin: 4px 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: #eee;
}

.footer-col-list li {
  margin-bottom: 12px;
  font-size: 13px;
}

.footer-col-list a {
  color: rgba(255, 255, 255, 0.6);
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

.footer-col-list a:hover {
  color: #fff;
}

.footer-qr {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.footer-qr-img {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  padding: 6px;
  background: #fff;
  border-radius: 8px;
}

.footer-qr-img img {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-payment {
  margin-top: 20px;
}

.footer-payment-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-payment-icons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.footer-payment-icons img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.footer-payment-icons img + img {
  margin-left: 10px;
}

.footer-friends {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 18px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-friends-label {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  margin-right: 16px;
  padding: 3px 10px;
  border-radius: 2px;
  color: #c9c9c9;
}

.footer-friends-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 6px 24px;
}

.footer-friends-links a {
  color: rgba(255, 255, 255, 0.55);
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

.footer-friends-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 6px 24px;
  padding: 18px 0 22px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.footer-copy {
  margin: 0;
}

.footer-icp {
  margin: 0;
}

.footer-icp a {
  color: rgba(255, 255, 255, 0.45);
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

.footer-icp a:hover {
  color: #fff;
}

.footer-icp a + a {
  margin-left: 16px;
}

@media screen and (max-width: 991px) {
  .site-footer {
    padding-top: 44px;
  }

  .footer-top {
    gap: 32px 24px;
  }

  .footer-brand {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
    max-width: 100%;
  }

  .footer-col {
    -ms-flex-preferred-size: 30%;
    flex-basis: 30%;
  }
}

@media screen and (max-width: 560px) {
  .footer-col {
    -ms-flex-preferred-size: 46%;
    flex-basis: 46%;
  }

  .footer-friends {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
  }

  .footer-friends-label {
    margin: 0 0 12px;
  }

  .footer-bottom {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
  }

  .footer-icp a + a {
    display: block;
    margin: 4px 0 0;
  }
}

@media screen and (max-width: 991px) {
  .header-inner {
    position: relative;
    height: auto;
    min-height: 56px;
    padding: 8px 16px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: block;
    width: 100%;
    -ms-flex-order: 3;
    order: 3;
    text-align: left;
    background: #fff;
    border-top: 1px solid #eee;
    margin: 8px -16px -8px;
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    -webkit-transition: max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.42s;
    transition: max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.42s;
  }

  .site-header.is-open .nav {
    visibility: visible;
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
  }

  .nav-list,
  .nav-item {
    display: block;
  }

  .nav-list {
    -webkit-transform: translateY(-12px);
    transform: translateY(-12px);
    filter: alpha(opacity=0);
    opacity: 0;
    -webkit-transition: opacity 0.32s ease, -webkit-transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transition: opacity 0.32s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-header.is-open .nav-list {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    filter: alpha(opacity=100);
    opacity: 1;
  }

  .nav-link {
    height: auto;
    min-height: 44px;
    padding: 12px 0;
  }

  .nav-item.active .nav-link::after {
    left: 24px;
    right: 0;
    bottom: 0;
  }

  .dropdown {
    position: static;
    left: auto;
    width: auto;
    margin-left: 0;
    padding: 0;
    box-shadow: none;
    background: #f7f7f7;
    visibility: visible;
    filter: alpha(opacity=100);
    opacity: 1;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    -webkit-transform: none;
    transform: none;
    -webkit-transition: max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1);
    transition: max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-item:hover > .dropdown {
    visibility: visible;
    filter: alpha(opacity=100);
    opacity: 1;
    pointer-events: none;
    -webkit-transform: none;
    transform: none;
    max-height: 0;
  }

  .nav-item.is-open > .dropdown {
    pointer-events: auto;
    max-height: 200px;
    padding: 4px 0;
  }

  /* 头像下拉：移动端禁用 hover，仅 is-open/focus 打开，避免触屏粘滞 hover 导致无法关闭（对齐导航下拉模式） */
  .user-menu.is-logged-in:hover .user-menu__dropdown {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .user-menu.is-logged-in.is-open .user-menu__dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .search__input {
    font-size: 28px;
    border-bottom-width: 3px;
  }

  .search__form {
    margin: 4em 0 0;
  }

  .btn--search-close {
    font-size: 28px;
    top: 12px;
    right: 16px;
  }
}
@media screen and (max-width: 480px) {
  .login-btn span {
    display: none;
  }

     .login-btn {
        padding: 0px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        width: 32px;
        align-items: center;
        text-align: center;
    }

  .login-btn .user-icon {
    margin-right: 0;
  }

  .logo {
    font-size: 16px;
  }

  .search__input {
    font-size: 22px;
    width: 86%;
  }

  .search__info {
    width: 86%;
    text-align: center;
  }
}
.gift-crumb {
  margin-bottom: 16px;
  font-size: 13px;
  color: #888;
}

.gift-crumb a {
  color: #666;
}

.gift-crumb a:hover {
  color: var(--ui-color-primary);
}

.gift-crumb-sep {
  margin: 0 8px;
  color: #bbb;
}
/* ==================== Toast 轻提示 ==================== */
.toast {
  position: fixed;
  left: 50%;
  top: 72px;
  z-index: 1000;
  max-width: 80vw;
  padding: 10px 18px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translate(-50%, -8px);
  transform: translate(-50%, -8px);
  -webkit-transition: opacity 0.24s ease, -webkit-transform 0.24s ease, visibility 0s linear 0.24s;
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0s linear 0.24s;
  pointer-events: none;
}

.toast.is-show {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
}

.toast--error {
  background: rgba(200, 60, 40, 0.94);
}
/* 视觉隐藏但保留给读屏（页面主标题等） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
