@font-face {
  font-family: "ZangYiHan";
  src:
    local("方正藏意汉体简体"),
    local("方正藏意汉体"),
    url("../fonts/fz-cangyi-hanti.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* 仅将藏意汉体用于：顶部导航、分类区域、底部信息 */
.header-top,
.header-top *,
.top-nav-right,
.top-nav-right *,
.nav-search,
.nav-search *,
.shop-navigation,
.shop-navigation *,
.goods-category-title,
.goods-category-title *,
.goods-category-s,
.goods-category-s *,
.category-content,
.category-content *,
.am-footer-default,
.am-footer-default * {
  font-family: "ZangYiHan", "PingFang SC", "Microsoft YaHei", sans-serif;
}



:root {
  --tibet-red: #8f1f1d;
  --tibet-red-deep: #721614;
  --tibet-gold: #c6a15b;
  --tibet-gold-light: #e7d1a0;
  --tibet-cream: #f6f1e7;
  --tibet-ink: #4d3926;
  --tibet-blue: #3c6f8f;
  --tibet-line: rgba(143,31,29,.14);
}

html, body {
  background: var(--tibet-cream);
}

body {
  color: var(--tibet-ink);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(198,161,91,0.06), transparent 10%),
    radial-gradient(circle at 88% 6%, rgba(60,111,143,0.05), transparent 10%),
    linear-gradient(to bottom, rgba(255,255,255,0.25), rgba(255,255,255,0));
}

a {
  transition: all .2s ease;
}

.header-top,
.top-nav-right {
  background: linear-gradient(90deg, var(--tibet-red-deep), var(--tibet-red));
  border-bottom: 1px solid rgba(198,161,91,.28);
  color: #f9edd6;
}

.header-top *,
.top-nav-right *,
.header-top a,
.top-nav-right a,
header.am-topbar a {
  color: #f9edd6 !important;
}

.header-top .line-column {
  color: rgba(249,237,214,.35);
}

.nav-search {
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.96), rgba(248,243,232,0.98));
  border-bottom: 1px solid rgba(198,161,91,.2);
}

.nav-search::before,
.shop-navigation::before,
.am-footer-default::before {
  content: "";
  display: block;
  width: 100%;
  height: 24px;
  background: url("../images/top-border.svg") repeat-x center center;
  background-size: auto 24px;
}

.nav-search::before {
  position: absolute;
  top: 0;
  left: 0;
}

.nav-search .logo-big img,
.nav-search .logo img {
  filter: saturate(1.02) contrast(1.02);
}

.search-bar form .search-group {
  border: 2px solid var(--tibet-gold);
  border-radius: .7rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(76, 47, 23, .08);
}

#search-input {
  background: rgba(255,255,255,.92);
}

#ai-topsearch {
  background: linear-gradient(135deg, var(--tibet-red), #aa312b);
  color: #fff7eb !important;
  border-left: 1px solid rgba(255,255,255,.15);
}

#ai-topsearch * {
  color: #fff7eb !important;
}

.search-hot-keywords li a {
  color: #8a6f53;
}

.search-hot-keywords li a:hover {
  color: var(--tibet-red);
}

.goods-category-title,
#goods-category .category-content .all-goods,
.shop-navigation {
  background: linear-gradient(90deg, var(--tibet-red-deep), var(--tibet-red));
}

.shop-navigation {
  border-bottom: 2px solid var(--tibet-gold);
  position: relative;
}

.shop-navigation .am-nav>li>a,
.goods-category-title .all-goods,
.goods-category-s .all-goods {
  color: #f8ecd8 !important;
  font-weight: 500;
}

.shop-navigation .am-nav>li>a:hover,
.shop-navigation .am-nav>li>a:focus,
.shop-navigation .am-nav>li>a.active {
  color: #ffe8b0 !important;
}

.shop-navigation .am-topbar-collapse {
  background: transparent;
}

.goods-category-s .category-content,
.category-content .category {
  border-right: 1px solid rgba(198,161,91,.18);
  border-left: 1px solid rgba(198,161,91,.18);
}

.category-content .category-list li {
  background: rgba(255,252,247,.96);
}

.category-content .b-category-name,
.category-content .bd-name {
  color: #5e4128;
}

.category-content .b-category-name:hover,
.category-content li:hover,
.category-content li:hover .bd-name {
  color: var(--tibet-red) !important;
}

.category-content .menu-item {
  border-color: rgba(198,161,91,.18);
  box-shadow: var(--box-shadow);
}

.am-btn-primary,
.am-btn-secondary,
.am-btn-warning,
.am-btn-success,
.am-btn-danger {
  border-radius: 999px;
}

.am-btn-primary {
  box-shadow: 0 10px 22px rgba(143,31,29,.16);
}

.am-btn-secondary {
  box-shadow: 0 8px 18px rgba(198,161,91,.16);
}

.spacing-nav-title .line,
.am-tabs-border>.am-tabs-nav>.bar,
.am-title-left-border::before {
  background: linear-gradient(180deg, var(--tibet-gold), var(--tibet-red));
}

.spacing-nav-title .text-wrapper {
  color: var(--tibet-red);
}

.am-footer-default {
  margin-top: 3rem;
  border-top: 0;
  background:
    linear-gradient(180deg, #8d1c19 0%, #6f1311 100%);
  color: #f5e8cf;
  position: relative;
  overflow: hidden;
}

.am-footer-default::before {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
}

.am-footer-default::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: url("../images/footer-mountain.svg") no-repeat center bottom;
  background-size: cover;
  opacity: .85;
  pointer-events: none;
}

.am-footer-default .am-container,
.am-footer-default .am-footer-miscs {
  position: relative;
  z-index: 1;
}

.am-footer-default a,
.am-footer-default .footer-icp a,
.am-footer-default .am-footer-miscs p {
  color: #f7e6c5 !important;
}

.am-footer-default .footer-nav-title {
  color: #ffe8b0 !important;
}

.am-footer-default b {
  color: rgba(255,232,176,.25);
}

.footer-about li i {
  color: var(--tibet-gold-light);
}

.am-footer-miscs .am-container {
  border-top: 1px solid rgba(255,232,176,.15);
}

.user-content .user-content-body,
.am-tabs-border,
.common-login-modal,
.banner-mixed,
.module-goods-grid-base .item,
.am-popup,
form.am-form,
.user-form-content-container form.am-form {
  border-radius: 1rem;
}

.user-content .user-content-body,
.am-tabs-border,
.banner-mixed,
.module-goods-grid-base .item {
  box-shadow: 0 10px 26px rgba(79, 45, 20, .08);
}

.module-goods-grid-base .item {
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(249,243,232,.96));
  border: 1px solid rgba(198,161,91,.18);
  overflow: hidden;
  position: relative;
}

.module-goods-grid-base .item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--tibet-red), var(--tibet-gold), var(--tibet-blue));
}

.module-goods-grid-base .item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(79, 45, 20, .12);
}

.module-goods-grid-base .goods-images {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.module-goods-grid-base .goods-title a {
  color: #523a27;
}

.module-goods-grid-base .price strong,
.module-goods-grid-base .price {
  color: var(--tibet-red);
}

.module-goods-grid-base .original-price {
  color: #9e8d79;
}

.module-goods-grid-base .buy-btn {
  background: linear-gradient(135deg, var(--tibet-red), #a72f29);
  border-color: #a72f29;
}

.base-nav-more a,
.items-nav-title .more a {
  color: var(--tibet-red);
}

.am-breadcrumb li a,
.breadcrumb-data .am-breadcrumb li a {
  color: #7a6650;
}

.am-breadcrumb li a:hover,
.breadcrumb-data .am-breadcrumb li a:hover {
  color: var(--tibet-red);
}

.am-form select,
.am-form textarea,
.am-form input[type='text'],
.am-form input[type='password'],
.am-form input[type='search'],
.am-form input[type='email'],
.am-form input[type='number'],
.am-form input[type='tel'],
.am-form-field {
  border-color: rgba(198,161,91,.28) !important;
  border-radius: .7rem !important;
  background: rgba(255,255,255,.96);
}

.am-form select:focus,
.am-form textarea:focus,
.am-form input[type='text']:focus,
.am-form input[type='password']:focus,
.am-form input[type='search']:focus,
.am-form input[type='email']:focus,
.am-form input[type='number']:focus,
.am-form input[type='tel']:focus,
.am-form-field:focus {
  border-color: var(--tibet-red) !important;
}

.user-offcanvas-bar .am-list>li.am-active>a>i,
.user-offcanvas-bar .am-list>li.am-active>a,
.user-content-body .user-center-admin-nav .am-active,
.user-content-body .user-center-admin-nav .am-active>a {
  color: var(--tibet-red) !important;
}

.user-content-body .user-center-admin-nav .am-active {
  border-bottom-color: var(--tibet-gold);
}

.home-floor .items-nav-title .floor-title,
.base-nav .base-nav-title {
  color: #5b3e26;
}

.home-floor .items-nav-title .floor-desc,
.base-nav .base-nav-desc {
  color: #8f7b68;
}

.banner .am-slider,
.banner .am-slider .am-slides li {
  border-radius: 1rem;
  overflow: hidden;
}

.am-slider-default .am-control-nav li a.am-active,
.am-slider-a1 .am-control-nav li a.am-active {
  background-color: var(--tibet-gold);
}

@media only screen and (min-width: 1025px) {
  .home-floor {
    position: relative;
  }

  .banner .am-slider {
    box-shadow: 0 14px 30px rgba(43, 26, 14, .12);
  }

  .slideall .banner-mixed {
    background:
      linear-gradient(180deg, rgba(255,248,235,.98), rgba(247,239,224,.97));
    border: 1px solid rgba(198,161,91,.22);
  }
}

@media only screen and (max-width: 640px) {
  .header-top,
  .top-nav-right {
    background: linear-gradient(90deg, var(--tibet-red-deep), var(--tibet-red));
  }

  .shop-navigation .am-topbar-collapse {
    background: linear-gradient(180deg, rgba(143,31,29,.98), rgba(114,22,20,.98));
  }

  .shop-navigation .am-nav>li:not(:last-child) {
    border-bottom-color: rgba(255,232,176,.12);
  }

  .module-goods-grid-base .item {
    border-radius: .8rem;
  }

  .am-footer-default {
    padding-bottom: 7rem;
  }
}

/* 首页增强 */
.index-index-index .banner .am-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(231,209,160,.78);
  border-radius: 1rem;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  z-index: 2;
}

.index-index-index .slideall .banner-mixed {
  border-top: 3px solid var(--tibet-gold);
}

.index-index-index .banner-news-title {
  color: var(--tibet-red) !important;
}

.index-index-index .banner-news-title::before {
  background: linear-gradient(180deg, var(--tibet-gold), var(--tibet-red)) !important;
}

.index-index-index .banner-news li a {
  color: #5d4633;
}

.index-index-index .banner-news li a:hover {
  color: var(--tibet-red);
}

.index-index-index .floor .aggregation {
  border: 1px solid rgba(198,161,91,.18);
  box-shadow: 0 10px 24px rgba(79, 45, 20, .08);
  border-radius: 1rem;
  overflow: hidden;
}

.index-index-index .aggregation .word {
  background: rgba(255, 248, 236, .82) !important;
  border: 1px solid rgba(198,161,91,.14);
  border-radius: .9rem;
  backdrop-filter: blur(6px);
}

.index-index-index .word .outer {
  border-color: rgba(143,31,29,.18);
  color: #6b4f35;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}

.index-index-index .word .outer:hover {
  background: linear-gradient(135deg, var(--tibet-red), #a72f29) !important;
  border-color: #a72f29 !important;
  color: #fff9ef !important;
}

.index-index-index .items-nav-title .more a {
  color: var(--tibet-red) !important;
}

.index-index-index .items-nav-title .more a i {
  color: var(--tibet-gold) !important;
}

.index-index-index .items-nav-title .today-brands a {
  color: #8d6c42;
}

.index-index-index .items-nav-title .today-brands a:hover {
  color: var(--tibet-red);
}

.index-index-index .module-goods-grid-base .item {
  border-radius: 1rem;
}

.index-index-index .module-goods-grid-base .item .price strong {
  font-weight: 700;
}

.index-index-index .module-goods-grid-base .item .goods-title {
  min-height: 4rem;
}

.index-index-index .module-goods-grid-base .item .goods-title a:hover {
  color: var(--tibet-red);
}


/* V1.1.1 修正：顶部导航「商品分类」下拉文字颜色增强，和「全部分类」区域保持一致 */
.shop-navigation .category-content,
.shop-navigation .category-content .category,
.shop-navigation .category-content .category-list li,
.shop-navigation .category-content .menu-item {
  background: rgba(255,252,247,.98);
}

.shop-navigation .category-content .category-name,
.shop-navigation .category-content .category-name a,
.shop-navigation .category-content .b-category-name,
.shop-navigation .category-content .bd-name,
.shop-navigation .category-content .menu-item a,
.shop-navigation .category-content .menu-item .text,
.shop-navigation .category-content .menu-item dl dd a,
.shop-navigation .category-content .menu-item dl dt a,
.shop-navigation .category-content .menu-item .am-list > li > a,
.shop-navigation .category-content .menu-item .am-list > li > span,
.shop-navigation .category-content .menu-item * {
  color: #5e4128 !important;
}

.shop-navigation .category-content li:hover .category-name,
.shop-navigation .category-content li:hover .category-name a,
.shop-navigation .category-content li:hover .b-category-name,
.shop-navigation .category-content li:hover .bd-name,
.shop-navigation .category-content .menu-item a:hover,
.shop-navigation .category-content .menu-item dl dd a:hover,
.shop-navigation .category-content .menu-item dl dt a:hover {
  color: var(--tibet-red) !important;
}


/* V1.1.2 修正：顶部主导航弹层/下拉菜单文字改为和左侧“全部分类”一致的深棕色 */
.shop-navigation .am-dropdown-content,
.shop-navigation .am-dropdown-content ul,
.shop-navigation .am-dropdown-content li,
.shop-navigation .am-dropdown-content dl,
.shop-navigation .am-dropdown-content dd,
.shop-navigation .am-dropdown-content dt,
.shop-navigation .am-dropdown-content .dropdown-content,
.shop-navigation .am-dropdown-content .dropdown-content-inner,
.shop-navigation .am-dropdown-content .am-list,
.shop-navigation .am-dropdown-content .am-list > li,
.shop-navigation .am-dropdown-content .category-name,
.shop-navigation .am-dropdown-content .category-name a,
.shop-navigation .am-dropdown-content .text,
.shop-navigation .am-dropdown-content a,
.shop-navigation .am-dropdown-content span,
.shop-navigation .am-dropdown-content p,
.shop-navigation .am-dropdown-content * {
  color: #5e4128 !important;
}

.shop-navigation .am-dropdown-content,
.shop-navigation .am-dropdown-content ul,
.shop-navigation .am-dropdown-content li,
.shop-navigation .am-dropdown-content .dropdown-content,
.shop-navigation .am-dropdown-content .dropdown-content-inner,
.shop-navigation .am-dropdown-content .am-list > li {
  background: rgba(255,252,247,.98) !important;
}

.shop-navigation .am-dropdown-content {
  border: 1px solid rgba(198,161,91,.22) !important;
  box-shadow: 0 12px 26px rgba(79,45,20,.10) !important;
}

.shop-navigation .am-dropdown-content a:hover,
.shop-navigation .am-dropdown-content span:hover,
.shop-navigation .am-dropdown-content p:hover,
.shop-navigation .am-dropdown-content li:hover > a,
.shop-navigation .am-dropdown-content li:hover > span,
.shop-navigation .am-dropdown-content li:hover > p,
.shop-navigation .am-dropdown-content dd a:hover,
.shop-navigation .am-dropdown-content dt a:hover {
  color: var(--tibet-red) !important;
}

/* 修复右上角下拉菜单（我的商城 / 我的收藏 等）文字过浅的问题 */
.header-top .am-dropdown-content,
.top-nav-right .am-dropdown-content,
.header-top .menu-bd,
.top-nav-right .menu-bd,
.header-top .menu-bd-panel,
.top-nav-right .menu-bd-panel,
.header-top .am-dropdown-content ul,
.top-nav-right .am-dropdown-content ul {
  background: #fffaf2 !important;
  border: 1px solid rgba(198,161,91,.25) !important;
  box-shadow: 0 10px 28px rgba(86, 36, 20, 0.12) !important;
}

.header-top .am-dropdown-content *,
.top-nav-right .am-dropdown-content *,
.header-top .menu-bd *,
.top-nav-right .menu-bd *,
.header-top .menu-bd-panel *,
.top-nav-right .menu-bd-panel * {
  color: #5e4128 !important;
}

.header-top .am-dropdown-content a,
.top-nav-right .am-dropdown-content a,
.header-top .menu-bd a,
.top-nav-right .menu-bd a,
.header-top .menu-bd-panel a,
.top-nav-right .menu-bd-panel a {
  color: #5e4128 !important;
}

.header-top .am-dropdown-content li:hover,
.top-nav-right .am-dropdown-content li:hover,
.header-top .menu-bd li:hover,
.top-nav-right .menu-bd li:hover,
.header-top .menu-bd-panel li:hover,
.top-nav-right .menu-bd-panel li:hover,
.header-top .am-dropdown-content a:hover,
.top-nav-right .am-dropdown-content a:hover,
.header-top .menu-bd a:hover,
.top-nav-right .menu-bd a:hover,
.header-top .menu-bd-panel a:hover,
.top-nav-right .menu-bd-panel a:hover {
  background: rgba(198,161,91,.10) !important;
  color: var(--tibet-red) !important;
}
