/* 独立商品信息卡 */
.item-box .product-card.item-block {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 340px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(31, 47, 70, .14) !important;
}

.item-box .product-card-media {
    flex: 0 0 145px;
    margin: 16px 16px 0;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

.item-box .product-card-body {
    position: relative;
    flex: 1;
    padding: 12px 16px 48px;
    background: #fff;
}

.item-box .product-card-tag {
    display: inline-block;
    margin-bottom: 7px;
    padding: 3px 8px;
    border: 1px solid #bcebd2;
    border-radius: 999px;
    background: #effcf5;
    color: #45ad75;
    font-size: 12px;
    line-height: 18px;
}

.item-box .product-card-name {
    overflow: hidden;
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-box .product-card-price {
    position: absolute;
    left: 16px;
    bottom: 45px;
    color: #f15b72;
    font-size: 22px;
    font-weight: 800;
    line-height: 28px;
}

.item-box .product-card-stock {
    position: absolute;
    right: 16px;
    bottom: 15px;
    left: 16px;
    display: flex;
    justify-content: flex-start;
    color: #7b8798;
    font-size: 14px;
    line-height: 20px;
}

.item-box .product-card-stock b {
    color: #7b8798;
    font-weight: 700;
}

/* 顶部：登录、语言切换改为浅色按钮 */
#page-header .btn-alt-secondary {
    background: #f4f8ff !important;
    border: 1px solid #cadced !important;
    color: #244563 !important;
    box-shadow: none !important;
}

#page-header .btn-alt-secondary:hover,
#page-header .btn-alt-secondary:focus {
    background: #e3f0ff !important;
    border-color: #8cbcea !important;
    color: #1769aa !important;
}

/* 商品分类下拉菜单改为白底 */
#main-navigation .nav-main-submenu,
#main-navigation .category-submenu {
    background: #ffffff !important;
    border: 1px solid #d5e2f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 24px rgba(35, 67, 101, .16) !important;
}

#main-navigation .nav-main-submenu .nav-main-link,
#main-navigation .category-submenu .nav-main-link {
    background: transparent !important;
    color: #34495e !important;
}

#main-navigation .nav-main-submenu .nav-main-link:hover,
#main-navigation .category-submenu .nav-main-link:hover {
    background: #edf6ff !important;
    color: #1677c8 !important;
}

/* 导航图标及文字：绿色改为商务蓝 */
#main-navigation .nav-main-link,
#main-navigation .nav-main-link .nav-main-link-name,
#main-navigation .nav-main-link .mcy-icon {
    color: #2f6fae !important;
    fill: #2f6fae !important;
}

#main-navigation .nav-main-link:hover,
#main-navigation .nav-main-link.active {
    color: #126fc2 !important;
    background: #e8f3ff !important;
}

#main-navigation .nav-main-link:hover .mcy-icon,
#main-navigation .nav-main-link.active .mcy-icon {
    color: #126fc2 !important;
    fill: #126fc2 !important;
}


/* 页面高级渐变背景：替代图片背景 */
html,
body {
    min-height: 100%;
    background:
        radial-gradient(circle at 8% 15%, rgba(111, 190, 255, .24) 0, transparent 28%),
        radial-gradient(circle at 92% 80%, rgba(93, 220, 190, .18) 0, transparent 30%),
        radial-gradient(circle at 68% 8%, rgba(177, 155, 255, .12) 0, transparent 24%),
        linear-gradient(135deg, #f7faff 0%, #eaf4ff 45%, #edf9f7 100%) !important;
    background-attachment: fixed !important;
}

/* 语言选择器：Select2 生成的控件 */
#page-header .select2-container .select2-selection {
    min-height: 34px !important;
    padding: 2px 28px 2px 8px !important;
    background: #f4f8ff !important;
    border: 1px solid #cadced !important;
    border-radius: 5px !important;
    box-shadow: none !important;
}

#page-header .select2-container .select2-selection__rendered {
    color: #244563 !important;
    font-weight: 600 !important;
    line-height: 28px !important;
}

#page-header .select2-container .select2-selection__arrow b {
    border-top-color: #365d7c !important;
}

#page-header .select2-container--open .select2-selection {
    background: #e8f3ff !important;
    border-color: #8cbcea !important;
}

/* 展开后的语言列表 */
#page-header .select2-dropdown {
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #cadced !important;
    border-radius: 7px !important;
    box-shadow: 0 10px 24px rgba(35, 67, 101, .16) !important;
}

#page-header .select2-results__option {
    color: #244563 !important;
    background: #fff !important;
}

#page-header .select2-results__option--highlighted[aria-selected] {
    color: #126fc2 !important;
    background: #e8f3ff !important;
}


/* 语言选择器：图标、文字垂直居中且改为深色 */
.language-select-theme .select2-selection--single {
    display: flex !important;
    align-items: center !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 30px 0 9px !important;
    background-color: #f4f8ff !important;
    background-image: none !important;
    border: 1px solid #cadced !important;
}

.language-select-theme .select2-selection__rendered {
    display: flex !important;
    align-items: center !important;
    height: 32px !important;
    padding: 0 !important;
    color: #244563 !important;
    line-height: 1 !important;
}

.language-select-theme .select2-selection__rendered .table-item,
.language-select-theme .select2-selection__rendered .table-item-name {
    display: flex !important;
    align-items: center !important;
    color: #244563 !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

.language-select-theme .select2-selection__rendered img {
    width: 20px !important;
    height: 20px !important;
    margin-right: 6px !important;
    object-fit: contain !important;
}

.language-select-theme .select2-selection__arrow {
    top: 4px !important;
    right: 7px !important;
}

.language-select-theme .select2-selection__arrow b {
    border-top-color: #244563 !important;
}


/* 公告：白色商务信息卡 */
.block-notice {
    background: rgba(255, 255, 255, .94) !important;
    border: 1px solid rgba(177, 205, 232, .78) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 28px rgba(44, 91, 135, .12) !important;
    backdrop-filter: blur(10px) !important;
}

.block-notice .notice-background,
.block-notice .notice-background::before {
    display: none !important;
}

.block-notice,
.block-notice .content-notice,
.block-notice .block-content {
    color: #244563 !important;
    text-shadow: none !important;
}


/* 含商品说明的卡片高度 */
.item-box .product-card.item-block {
    height: 410px !important;
}

/* 商品卖点说明 */
.item-box .product-card-features {
    display: grid;
    gap: 5px;
    margin-top: 10px;
    color: #75849a;
    font-size: 12px;
    line-height: 18px;
}

.item-box .product-card-features div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-box .product-card-features strong {
    min-width: 86px;
    color: #315b83;
    font-weight: 700;
}

.item-box .product-card-features span {
    color: #8492a6;
}


/* 商品标题放大 */
.item-box .product-card-name {
    min-height: 52px;
    color: #173b60;
    font-size: 18px;
    font-weight: 800;
    line-height: 26px;
    white-space: normal;
    text-align: center;
}

/* 商品介绍：左右四字，整体居中对称 */
.item-box .product-card-features {
    gap: 7px;
    margin-top: 8px;
}

.item-box .product-card-features div {
    justify-content: center;
    gap: 18px;
    text-align: center;
}

.item-box .product-card-features strong,
.item-box .product-card-features span {
    min-width: 64px;
    text-align: center;
    font-size: 13px;
    line-height: 20px;
}

.item-box .product-card-features strong {
    color: #315b83;
}

.item-box .product-card-features span {
    color: #7d8ca1;
}


/* 商品标题：左对齐、加大、缩短与简介的间距 */
.item-box .product-card-name {
    min-height: 0 !important;
    margin: 2px 0 3px !important;
    color: #173b60 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 28px !important;
    letter-spacing: -.3px !important;
    text-align: left !important;
    white-space: nowrap !important;
}

/* 标题下方简介紧凑排列 */
.item-box .product-card-features {
    margin-top: 3px !important;
}


.item-box .product-card.item-block {
    height: 440px !important;
}

.item-box .product-card-name {
    font-size: 24px !important;
    line-height: 32px !important;
    white-space: normal !important;
}


/* 商品标题：仅放大标题这一行 */
.item-box .product-card-name {
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 32px !important;
    text-align: left !important;
}

/* 简介、价格、库存改为自然紧凑排列 */
.item-box .product-card.item-block {
    height: auto !important;
    min-height: 0 !important;
}

.item-box .product-card-body {
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: 18px !important;
}

.item-box .product-card-features {
    margin: 6px 0 0 !important;
}

.item-box .product-card-price {
    position: static !important;
    margin-top: 12px !important;
}

.item-box .product-card-stock {
    position: static !important;
    margin-top: 7px !important;
}


/* 商品标题：仅放大标题这一行 */
.item-box .product-card-name {
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 32px !important;
    text-align: left !important;
}

/* 简介、价格、库存改为自然紧凑排列 */
.item-box .product-card.item-block {
    height: auto !important;
    min-height: 0 !important;
}

.item-box .product-card-body {
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: 18px !important;
}

.item-box .product-card-features {
    margin: 6px 0 0 !important;
}

.item-box .product-card-price {
    position: static !important;
    margin-top: 12px !important;
}

.item-box .product-card-stock {
    position: static !important;
    margin-top: 7px !important;
}


/* 商品卡文字统一左对齐 */
.item-box .product-card-name,
.item-box .product-card-features,
.item-box .product-card-price,
.item-box .product-card-stock {
    text-align: left !important;
}

.item-box .product-card-features div {
    justify-content: flex-start !important;
}

.item-box .product-card-features strong,
.item-box .product-card-features span {
    text-align: left !important;
}


/* 商品卡恢复统一紧凑高度 */
.item-box .product-card.item-block {
    height: 350px !important;
}

/* 三个商品标签 */
.item-box .product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 7px;
}

.item-box .product-card-tags .product-card-tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    margin: 0;
    padding: 0 9px;
    border: 1px solid #bcebd2;
    border-radius: 999px;
    background: #effcf5;
    color: #399b69;
    font-size: 12px;
    line-height: 22px;
}

/* 旧三行简介隐藏 */
.item-box .product-card-features {
    display: none !important;
}


/* 商城红白灰主题 */
html,
body {
    background: #f5f5f5 !important;
}

/* 顶部与导航 */
#page-header,
#main-container > .bg-nav-primary-darker,
#main-container > .bg-nav-primary-darker > .bg-black-10 {
    background: #ffffff !important;
    border-color: #e9e9e9 !important;
}

#page-header {
    border-top: 3px solid #e1251b !important;
    border-bottom: 1px solid #e9e9e9 !important;
}

#main-navigation .nav-main-link,
#main-navigation .nav-main-link .nav-main-link-name,
#main-navigation .nav-main-link .mcy-icon {
    color: #333 !important;
    fill: #333 !important;
}

#main-navigation .nav-main-link:hover,
#main-navigation .nav-main-link.active {
    background: transparent !important;
    color: #e1251b !important;
}

#main-navigation .nav-main-link:hover .mcy-icon,
#main-navigation .nav-main-link.active .mcy-icon {
    color: #e1251b !important;
    fill: #e1251b !important;
}

/* 搜索与登录/语言按钮 */
#search-form .form-control,
#search-form .input-group-text,
#page-header .btn-alt-secondary,
.language-select-theme .select2-selection--single {
    background: #fff !important;
    border-color: #dedede !important;
    color: #333 !important;
}

#search-form {
    border: 2px solid #e1251b;
    border-radius: 3px;
}

/* 公告与商品卡 */
.block-notice,
.item-box .product-card.item-block {
    background: #fff !important;
    border: 1px solid #ececec !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06) !important;
}

.block-notice {
    border-top: 3px solid #e1251b !important;
}

/* 自动发货等标签 */
.item-box .product-card-tags .product-card-tag {
    border-color: #ffd2ce !important;
    background: #fff3f2 !important;
    color: #e1251b !important;
}

/* 商品价格 */
.item-box .product-card-price,
.item-box .product-card-price * {
    color: #e1251b !important;
}

/* 详情页购买按钮 */
.btn-buy-now {
    background: #e1251b !important;
}

.btn-add-cart {
    background: #ff8a00 !important;
}

/* 商品卡悬停效果 */
.item-box .product-card.item-block:hover {
    border-color: #e1251b !important;
    box-shadow: 0 5px 16px rgba(225, 37, 27, .16) !important;
    transform: translateY(-2px);
}

