/* ====================================
   Design Tokens (CSS Variables)
   ==================================== */
:root {
    /* 主色 */
    --color-primary: #4572f7;
    --color-primary-hover: #3461e0;
    --color-primary-active: #2850c8;
    --color-primary-bg: rgba(69, 114, 247, 0.1);
    --color-primary-outline: rgba(69, 114, 247, 0.2);

    /* 功能色 */
    --color-success: #52c41a;
    --color-warning: #faad14;
    --color-error: #ff4d4f;
    --color-info: #4572f7;

    /* 中性色 */
    --color-text: rgba(0, 0, 0, 0.88);
    --color-text-secondary: rgba(0, 0, 0, 0.65);
    --color-text-tertiary: rgba(0, 0, 0, 0.45);
    --color-text-quaternary: rgba(0, 0, 0, 0.25);
    --color-border: #e0e0e0;
    --color-border-secondary: #f0f0f0;
    --color-bg-elevated: #fff;
    --color-bg-layout: #f4f7fc;
    --color-bg-container: #fff;
    --color-fill-secondary: #fafafa;
    --color-placeholder: #8c8c8c;

    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 50px;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);

    /* 容器 */
    --max-width: 1400px;

    /* z-index 层级 */
    --z-sticky: 100;
    --z-header: 200;
    --z-modal: 1000;
    --z-toast: 2000;

    /* 字体 */
    --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-size-sm: 12px;
    --font-size-base: 14px;
    --font-size-lg: 16px;
}

/* ====================================
   全局焦点可见性 (WCAG 2.4.7)
   ==================================== */
*:focus-visible {
    outline: 2px solid var(--color-primary) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px var(--color-primary-outline) !important;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

/* ====================================
   全局字体系统（中文优先）
   ==================================== */
body {
    font-family: var(--font-family) !important;
}

.section__title {
    font-family: var(--font-family) !important;
}

/* ====================================
   搜索区域样式
   ==================================== */

/* 搜索区域外层容器 - 和 merchant-info 对齐 */
.search-wrapper {
    max-width: var(--max-width);
    margin: 20px auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.search-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
}

.search-input-box {
    height: 40px;
    width: 400px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 10px;
    transition: all 0.3s ease;
}

/* 聚焦时蓝色描边 + Ant Design 标准光晕 */
.search-input-box:focus-within {
    border-color: #4572f7;
    box-shadow: 0 0 0 2px rgba(69, 114, 247, 0.2);
}

.search-input-box input {
    display: inline-block;
    width: 100%;
    padding: 0 15px;
    height: 100%;
    font-weight: 400;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    background: transparent;
}

.search-input-box input::placeholder {
    color: var(--color-placeholder);
}

.search-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 40px;
    min-width: 90px;
    padding: 0 20px;
    background: #4572f7;
    border: 1px solid #4572f7;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* 光影扫过效果 - 参考买家登录按钮 */
.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transition: left 0.4s ease;
    pointer-events: none;
}

.search-button:hover {
    background: #3461e0;
    border-color: #3461e0;
}

.search-button:hover::before {
    left: 100%;
}

.search-button img,
.search-button svg {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    fill: #fff;
}

.search-button span {
    position: relative;
    z-index: 1;
}

/* 快捷筛选按钮容器 */
.quick-filter-buttons {
    display: inline-flex;
    gap: 10px;
    margin-left: 10px;
}

/* 快捷筛选按钮样式 */
.quick-filter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 40px;
    min-width: 110px;
    padding: 0 18px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* 光影扫过效果 */
.quick-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(69, 114, 247, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    transition: left 0.4s ease;
    pointer-events: none;
}

.quick-filter-btn:hover {
    border-color: #4572f7;
    color: #4572f7;
}

.quick-filter-btn:hover::before {
    left: 100%;
}

/* 激活状态 */
.quick-filter-btn.active {
    background: #4572f7;
    border-color: #4572f7;
    color: #fff;
}

.quick-filter-btn.active:hover {
    background: #3461e0;
    border-color: #3461e0;
}

.quick-filter-btn img,
.quick-filter-btn svg {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

/* 悬停时图标放大 */
.quick-filter-btn:hover img,
.quick-filter-btn:hover svg {
    transform: scale(1.1);
}

/* 激活状态图标变白色 */
.quick-filter-btn.active img {
    filter: brightness(0) invert(1);
}

/* 激活状态图标动画 */
.quick-filter-btn.active img,
.quick-filter-btn.active svg {
    animation: iconPulse 0.6s ease;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.quick-filter-btn span {
    position: relative;
    z-index: 1;
}

/* ====================================
   其他样式
   ==================================== */

/* 标题优化 - Ant Design 风格 */
.section__title {
    position: relative;
    padding-left: 30px;
    padding-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    border-bottom: 1px solid #4572f7;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

/* 左侧SVG分类图标 */
.section__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: -2px;
    width: 24px;
    height: 24px;
    background: url('../img/031_全部.svg') no-repeat center / contain;
}

/* 商品标题图标 - 默认购物车 */
#goods_title::before,
#goods_title.icon-cart::before {
    background: url('../img/031_购物车.svg') no-repeat center center !important;
    background-size: 24px 24px !important;
    width: 24px !important;
    height: 24px !important;
    top: -2px !important;
}

/* 推荐商品图标 */
#goods_title.icon-recommend::before {
    background: url('../img/031_点赞.svg') no-repeat center center !important;
    background-size: 24px 24px !important;
    width: 24px !important;
    height: 24px !important;
    top: -2px !important;
}

/* 爆款商品图标 */
#goods_title.icon-hot::before {
    background: url('../img/爆款商品-简.svg') no-repeat center center !important;
    background-size: 24px 24px !important;
    width: 24px !important;
    height: 24px !important;
    top: -2px !important;
}

/* ====================================
   商品描述区域 - Ant Design Descriptions 风格
   ==================================== */

/* ====================================
   商品描述区域 - Ant Design Card 风格
   ==================================== */

/* 商品描述整体区块 */
.goods-desc-section {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 16px !important;
}

/* 商品描述标题栏 */
.goods-desc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.goods-desc-header .goods-desc-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: rgba(0, 0, 0, 0.45);
}

.goods-desc-header .goods-desc-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    line-height: 1.57;
}

/* 商品描述内容框 */
.text_box {
    background: #fafafa !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 16px 20px !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: rgba(0, 0, 0, 0.65) !important;
    word-break: break-all !important;
    white-space: pre-wrap !important;
}

/* 独立的 text_box（非 goods-desc 内部） */
.text_box.sale_message {
    background: #fffbe6 !important;
    border: 1px solid #ffe58f !important;
    border-radius: 8px !important;
    color: rgba(0, 0, 0, 0.88) !important;
}

/* 兼容：老的二级标题样式 */
.section .section__title_2 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: rgba(0, 0, 0, 0.88) !important;
    line-height: 1.57 !important;
}

/* 兼容：老的 goods-desc-icon（img 版本） */
img.goods-desc-icon {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    opacity: 0.65;
}

/* 订单信息区域间距 */
.order-info-section {
    margin: 20px auto !important;
}

/* 订单表单紧凑样式 */
#order_box .ure_info_box {
    padding: 0;
}

#order_box .ure_info {
    padding: 0;
    margin: 0;
    border-bottom: none;
}

#order_box .ure_info_input_box {
    margin-bottom: 14px;
    margin-top: 0;
    margin-left: 0;
}

#order_box .ure_info_input_box:last-child {
    margin-bottom: 0;
}

#order_box .ure_info_input_box_hide {
    margin-bottom: 6px;
}

#order_box .ure_info_input_box_hide p {
    display: inline;
    line-height: 1.2;
}

#order_box .ure_info_input_box .input,
#order_box .ure_info_input_box.email_show .input,
#order_box .ure_info_input_box.youhui_show .input,
#order_box .ure_info_input_box .input {
    margin: 0 !important;
    padding: 0 !important;
    height: 40px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

/* 输入框聚焦时蓝色描边 + Ant Design 标准光晕 */
#order_box .ure_info_input_box .input:focus-within,
#order_box .ure_info_input_box.email_show .input:focus-within,
#order_box .ure_info_input_box.youhui_show .input:focus-within {
    border-color: #4572f7 !important;
    box-shadow: 0 0 0 2px rgba(69, 114, 247, 0.2) !important;
}

#order_box .ure_info_input_box .input input,
#order_box .ure_info_input_box.email_show .input input,
#order_box .ure_info_input_box.youhui_show .input input,
#order_box .ure_info_input_box .input input[type="text"],
#order_box .ure_info_input_box .input input[type="password"] {
    display: inline-block !important;
    width: 100% !important;
    padding: 0 15px !important;
    height: 100% !important;
    font-weight: 400 !important;
    border: none !important;
    outline: none !important;
    font-size: 14px !important;
    color: #333 !important;
    background: transparent !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

#order_box .ure_info_input_box .input input::placeholder,
#order_box .ure_info_input_box.email_show .input input::placeholder,
#order_box .ure_info_input_box.youhui_show .input input::placeholder {
    color: var(--color-placeholder) !important;
}

#order_box .msg {
    margin-top: 4px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
}

#order_box .d-flex.ure_info_input_box_hide {
    gap: 0 !important;
}

#order_box .btn-type {
    margin-right: 10px !important;
}

#order_box .btn-type:last-child {
    margin-right: 0 !important;
}

/* 短信提醒、邮箱提醒、优惠券按钮 - 参考推荐商品按钮 */
#order_box .sms_btn,
#order_box .email_btn,
#order_box .coupon_btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    padding: 0 18px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    color: #666 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
}

/* 光影扫过效果 */
#order_box .sms_btn::before,
#order_box .email_btn::before,
#order_box .coupon_btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(69, 114, 247, 0.1) 50%, rgba(255, 255, 255, 0) 100%) !important;
    transition: left 0.4s ease !important;
    pointer-events: none !important;
}

#order_box .sms_btn:hover,
#order_box .email_btn:hover,
#order_box .coupon_btn:hover {
    border-color: #4572f7 !important;
    color: #4572f7 !important;
}

#order_box .sms_btn:hover::before,
#order_box .email_btn:hover::before,
#order_box .coupon_btn:hover::before {
    left: 100% !important;
}

/* 激活状态（选中时） - 使用:has()检测checkbox是否选中 */
#order_box .sms_btn:has(input:checked),
#order_box .email_btn:has(input:checked),
#order_box .coupon_btn:has(input:checked) {
    background: #4572f7 !important;
    border-color: #4572f7 !important;
    color: #fff !important;
}

#order_box .sms_btn:has(input:checked) label,
#order_box .email_btn:has(input:checked) label,
#order_box .coupon_btn:has(input:checked) label {
    color: #fff !important;
}

#order_box .sms_btn label,
#order_box .email_btn label,
#order_box .coupon_btn label {
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    position: relative !important;
    z-index: 1 !important;
}

#order_box .pay_type {
    margin-top: 14px;
    padding-top: 0;
}

#order_box .pay_type_hide {
    color: var(--color-text);
    margin-bottom: 10px;
    font-weight: 500;
}

#order_box .pay_type_box {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}

/* 支付方式按钮 - 参考快捷筛选按钮 */
#order_box .pay_type_leng {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    height: 56px !important;
    min-width: 160px !important;
    padding: 0 28px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    color: #666 !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    line-height: normal !important;
    width: auto !important;
    text-align: left !important;
}

/* 光影扫过效果 */
#order_box .pay_type_leng::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(69, 114, 247, 0.1) 50%, rgba(255, 255, 255, 0) 100%) !important;
    transition: left 0.4s ease !important;
    pointer-events: none !important;
}

#order_box .pay_type_leng:hover {
    border-color: #4572f7 !important;
    color: #4572f7 !important;
}

#order_box .pay_type_leng:hover::before {
    left: 100% !important;
}

#order_box .pay_type_leng:hover span {
    color: #4572f7 !important;
}

/* 选中状态 - 新效果：白色背景 + 蓝色边框 + 外发光 + 右上角勾选 */
#order_box .pay_type_leng.active {
    background: #fff !important;
    border-color: #4572f7 !important;
    border-width: 1px !important;
    color: #4572f7 !important;
    box-shadow: 0 0 0 4px rgba(69, 114, 247, 0.15), 0 4px 12px rgba(69, 114, 247, 0.2) !important;
}

#order_box .pay_type_leng.active span {
    color: #4572f7 !important;
    font-weight: 600 !important;
}

/* 选中状态的勾选图标 */
#order_box .pay_type_leng.active::after {
    content: '✓' !important;
    position: absolute !important;
    top: 6px !important;
    right: 8px !important;
    width: 18px !important;
    height: 18px !important;
    background: #4572f7 !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

/* 支付图标 */
#order_box .pay_type_leng img:first-child {
    width: 24px !important;
    height: 24px !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 隐藏右下角的小勾选图标 */
#order_box .pay_type_leng .xiadui {
    display: none !important;
}

#order_box .pay_type_leng span {
    position: relative !important;
    z-index: 1 !important;
    transition: color 0.3s ease !important;
}

/* 金币支付选项特殊样式 */
#order_box .pay_type_leng.pay_type_coin {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%) !important;
    border-color: #FFB800 !important;
    position: relative !important;
}

#order_box .pay_type_leng.pay_type_coin::before {
    background: linear-gradient(90deg, rgba(255, 184, 0, 0) 0%, rgba(255, 184, 0, 0.2) 50%, rgba(255, 184, 0, 0) 100%) !important;
}

#order_box .pay_type_leng.pay_type_coin:hover {
    border-color: #e6a600 !important;
    box-shadow: 0 2px 8px rgba(255, 184, 0, 0.3) !important;
}

#order_box .pay_type_leng.pay_type_coin span:first-of-type {
    color: #B8860B !important;
    font-weight: 600 !important;
}

#order_box .pay_type_leng.pay_type_coin .coin-balance {
    font-size: 11px !important;
    color: #FFB800 !important;
    margin-left: 4px !important;
}

#order_box .pay_type_leng.pay_type_coin.active {
    background: linear-gradient(135deg, #fff3cc 0%, #ffe6a0 100%) !important;
    border-color: #e6a600 !important;
    box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.2), 0 4px 12px rgba(255, 184, 0, 0.3) !important;
}

#order_box .pay_type_leng.pay_type_coin.active::after {
    background: linear-gradient(135deg, #FFB800 0%, #e6a600 100%) !important;
}

/* ====================================
   底部操作栏价格区域优化
   ==================================== */

/* 底部栏背景 */
.section_buttom {
    background: var(--color-bg-elevated) !important;
    border-top: 1px solid var(--color-border-secondary) !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06) !important;
    z-index: var(--z-sticky) !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
}

/* Header 背景色显式覆盖（修复 pc_main.css #000 冲突） */
.header {
    background: var(--color-bg-elevated) !important;
    z-index: var(--z-header) !important;
}

/* 数量选择器整体向右移动60px */
.section_buttom .shuliang_box {
    margin-left: 60px !important;
}

/* 价格区域距离按钮50px */
.section_buttom .jiage {
    margin-right: 50px !important;
}

/* 隐藏原价（删除线价格） */
.section_buttom .jiage s {
    display: none !important;
}

/* 含手续费文字缩小并加括号 */
.section_buttom .jiage span:last-child {
    font-size: 14px !important;
    color: #999 !important;
}

.section_buttom .jiage span:last-child::before {
    content: '（' !important;
}

.section_buttom .jiage span:last-child::after {
    content: '）' !important;
}

/* 确认支付按钮互动效果 - 参考搜索按钮 */
.section_buttom .queding_btn {
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

/* 光影扫过效果 - 白色 */
.section_buttom .queding_btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%) !important;
    transition: left 0.4s ease !important;
    pointer-events: none !important;
}

.section_buttom .queding_btn:hover::before {
    left: 100% !important;
}

/* ====================================
   Ant Design Message 全局提示
   ==================================== */

.antd-message-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.antd-message {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08),
                0 3px 6px -4px rgba(0, 0, 0, 0.12),
                0 9px 28px 8px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    color: rgba(0, 0, 0, 0.88);
    line-height: 1.5714;
    pointer-events: auto;
    animation: antd-message-move-in 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
}

.antd-message.closing {
    animation: antd-message-move-out 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86) forwards;
}

.antd-message-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.antd-message-icon svg {
    width: 16px;
    height: 16px;
}

.antd-message-icon.success svg { color: #52c41a; }
.antd-message-icon.error svg { color: #ff4d4f; }
.antd-message-icon.warning svg { color: #faad14; }
.antd-message-icon.info svg { color: #1677ff; }
.antd-message-icon.loading svg { color: #1677ff; animation: antd-spin 1s linear infinite; }

.antd-message-text {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.88);
    line-height: 1.5714;
}

@keyframes antd-message-move-in {
    0% { opacity: 0; transform: translateY(-100%); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes antd-message-move-out {
    0% { opacity: 1; transform: translateY(0); max-height: 50px; margin-bottom: 0; }
    100% { opacity: 0; transform: translateY(-100%); max-height: 0; margin-bottom: -8px; }
}

@keyframes antd-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ====================================
   Ant Design Modal 弹窗
   ==================================== */

.antd-modal-root {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
}

.antd-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s;
}

.antd-modal-mask.show {
    opacity: 1;
}

.antd-modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow: auto;
    outline: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.antd-modal {
    position: relative;
    width: 520px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08),
                0 3px 6px -4px rgba(0, 0, 0, 0.12),
                0 9px 28px 8px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.2s, transform 0.2s;
    margin-bottom: 100px;
}

.antd-modal.show {
    opacity: 1;
    transform: translateY(0);
}

.antd-modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.antd-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    line-height: 1.5;
    word-break: break-word;
}

.antd-modal-close {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    color: rgba(0, 0, 0, 0.45);
    transition: color 0.2s, background-color 0.2s;
    padding: 0;
    line-height: 1;
}

.antd-modal-close:hover {
    color: rgba(0, 0, 0, 0.88);
    background: rgba(0, 0, 0, 0.06);
}

.antd-modal-close svg {
    width: 14px;
    height: 14px;
}

.antd-modal-body {
    padding: 24px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.88);
    line-height: 1.5714;
    word-break: break-word;
    max-height: 60vh;
    overflow-y: auto;
}

.antd-modal-body::-webkit-scrollbar {
    width: 6px;
}

.antd-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.antd-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.antd-modal-footer {
    padding: 12px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.antd-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 4px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    border: 1px solid #d9d9d9;
    background: #fff;
    color: rgba(0, 0, 0, 0.88);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
    line-height: 1.5714;
    outline: none;
}

.antd-modal-btn:hover {
    color: #4096ff;
    border-color: #4096ff;
}

.antd-modal-btn-primary {
    background: #1677ff;
    border-color: #1677ff;
    color: #fff;
    box-shadow: 0 2px 0 rgba(5, 145, 255, 0.1);
}

.antd-modal-btn-primary:hover {
    background: #4096ff;
    border-color: #4096ff;
    color: #fff;
}

.antd-modal-btn-primary:active {
    background: #0958d9;
    border-color: #0958d9;
}

@media (max-width: 576px) {
    .antd-modal-wrap {
        padding-top: 60px;
    }
    .antd-modal {
        width: calc(100vw - 16px);
        margin-bottom: 60px;
    }
    .antd-modal-body {
        padding: 16px;
    }
}

/* 标题区域超紧凑 */
#order_box .col-12 .d-flex {
    margin-bottom: 4px;
}

/* 行间距 */
#order_box .row {
    margin: 0;
}

#order_box .row .col-12 {
    padding: 0;
}

/* ====================================
   商品分类 - 蓝色描边 + 光影滑动
   ==================================== */

.category_box {
    cursor: pointer;
    user-select: none;
}

.category_box .card {
    position: relative;
    padding: 10px 16px !important;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: auto !important;
}

.category_box .card__title {
    padding: 0 !important;
    margin-bottom: 6px !important;
}

.category_box .card__title h3 {
    font-size: 15px !important;
    margin: 0 !important;
    font-weight: 500;
}

.category_box .card__content {
    padding: 0 !important;
    margin: 0 !important;
}

.category_box .card__s_cateremark {
    display: inline-block;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.45);
    border: 1px solid #f0f0f0;
}

.category_box.active .card__s_cateremark {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* 光影滑动效果 */
.category_box .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(69, 114, 247, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
    transition: left 0.4s ease;
    pointer-events: none;
}

/* 悬停时光影扫过 */
.category_box:hover .card::before {
    left: 100%;
}

/* 悬停时蓝色描边 + 微升 + 阴影（仅未选中时） */
.category_box:not(.active):hover .card {
    border-color: #4572f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 选中状态 */
.category_box.active .card {
    background: #4572f7;
    border-color: #4572f7 !important;
}

.category_box.active:hover .card {
    border-color: #4572f7 !important;
}

.category_box.active .card__title h3,
.category_box.active .card__s_cateremark {
    color: #fff !important;
}

/* ====================================
   商品卡片优化 - 千寻网风格
   ==================================== */

/* 商品卡片容器 */
.goods_list .goods_box {
    margin-bottom: 16px;
    padding: 0 8px;
    cursor: pointer;
    user-select: none;
}

/* 商品卡片主体 */
.goods_list .goods_box .card {
    position: relative;
    padding: 16px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
    overflow: hidden !important;
}

/* 光影滑动效果 */
.goods_list .goods_box .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(69, 114, 247, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
    transition: left 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

/* 悬停时光影扫过（仅未选中时）*/
.goods_list .goods_box:not(.active):hover .card::before {
    left: 100%;
}

/* 悬停时蓝色描边 + 微升 + 阴影（仅未选中时） */
.goods_list .goods_box:not(.active):hover .card {
    border-color: #4572f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 选中状态 - 淡蓝色背景 + 1px蓝色描边 + 阴影 */
.goods_list .goods_box.active .card {
    background: #eef4ff !important;
    border: 1px solid #5b8ff9 !important;
    box-shadow: 0 0 8px rgba(91, 143, 249, 0.3);
}

/* 选中状态悬停时保持蓝色边框 */
.goods_list .goods_box.active:hover .card {
    border-color: #5b8ff9 !important;
}


/* 商品卡片内容包装 */
.goods_list .goods_box .card__wrap {
    position: relative;
    z-index: 1;
}

/* 商品标题容器 */
.goods_list .goods_box .card__detail:first-child {
    margin-bottom: 16px;
}

/* 商品标题 - 3行省略 */
.goods_list .goods_box .card__detail h3 {
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.88);
    line-height: 1.57;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-all;
    max-height: 66px; /* 14px * 1.57 * 3 ≈ 66px */
}

/* 价格容器 - 左浮动 */
.goods_list .goods_box .card__wrap .card__detail:nth-child(2) {
    display: inline-block !important;
    float: left !important;
    width: auto !important;
}

/* 库存容器 - 右浮动 */
.goods_list .goods_box .card__wrap .card__detail:nth-child(3) {
    display: inline-block !important;
    float: right !important;
    width: auto !important;
}

/* 清除浮动 */
.goods_list .goods_box .card__wrap::after {
    content: '' !important;
    display: table !important;
    clear: both !important;
}

/* 针对嵌套结构的额外选择器 */
.goods_list .goods_box .card .row .col-md-12 .card__wrap .card__detail:nth-child(2) {
    float: left !important;
}

.goods_list .goods_box .card .row .col-md-12 .card__wrap .card__detail:nth-child(3) {
    float: right !important;
}

/* 商品价格 - Ant Design 红色 */
.goods_list .goods_box .card__detail_price {
    font-size: 18px;
    font-weight: 600;
    color: #ff4d4f;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 商品库存 */
.goods_list .goods_box .card__detail_stock {
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    padding: 2px 8px;
    border-radius: 4px;
    background: #fafafa;
}

/* 库存充足（绿色）- 充足|很多|大量|较多 */
.goods_list .goods_box .card__detail_stock.stock-full {
    color: #52c41a;
}

/* 库存正常（绿色）- 默认状态 */
.goods_list .goods_box .card__detail_stock.stock-normal {
    color: #52c41a;
}

/* 库存不足（橙色）- 较少|少量|紧张 */
.goods_list .goods_box .card__detail_stock.stock-low {
    color: #ff7a45;
}

/* 库存为空（红色）- 缺货|无货|售罄|无|0 */
.goods_list .goods_box .card__detail_stock.stock-empty {
    color: #f5222d;
}

/* 默认样式（绿色）*/
.goods_list .goods_box .card__detail_stock:not(.stock-full):not(.stock-normal):not(.stock-low):not(.stock-empty) {
    color: #52c41a;
}

/* 库存标签背景色适配 */
.goods_list .goods_box .card__detail_stock.stock-full,
.goods_list .goods_box .card__detail_stock.stock-normal {
    background: #f6ffed;
}
.goods_list .goods_box .card__detail_stock.stock-low {
    background: #fff7e6;
}
.goods_list .goods_box .card__detail_stock.stock-empty {
    background: #fff2f0;
}

/* 商品详情行 */
.goods_list .goods_box .card__detail {
    margin-bottom: 0;
}

/* 原有图标样式 - 只在选中时显示在右下角 */
.goods_list .goods_box .lite_img {
    display: none;
}

.goods_list .goods_box.active .lite_img {
    display: block !important;
    position: absolute !important;
    bottom: -1px !important;
    right: -1px !important;
    width: 24px !important;
    height: 21px !important;
    z-index: 100 !important;
}

/* ====================================
   Layui Layer 弹窗 → Ant Design Modal 风格
   ==================================== */

/* 遮罩层 */
.layui-layer-shade {
    background-color: rgba(0, 0, 0, 0.45) !important;
}

/* 弹窗主体 */
.layui-layer {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08),
                0 3px 6px -4px rgba(0, 0, 0, 0.12),
                0 9px 28px 8px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
}

/* 标题栏 */
.layui-layer-title {
    background: #fff !important;
    border-bottom: 1px solid #f0f0f0 !important;
    color: rgba(0, 0, 0, 0.88) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 16px 24px !important;
    height: auto !important;
    line-height: 1.5 !important;
    border-radius: 8px 8px 0 0 !important;
}

/* 内容区 */
.layui-layer-content {
    color: rgba(0, 0, 0, 0.65) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    padding: 24px !important;
}

/* Dialog 类型内容区 */
.layui-layer-dialog .layui-layer-content {
    padding: 24px 24px 24px 24px !important;
}

/* Dialog 图标 */
.layui-layer-dialog .layui-layer-content .layui-layer-ico {
    top: 1px !important;
}

/* 按钮区域 */
.layui-layer-btn {
    background: #fff !important;
    border-top: 1px solid #f0f0f0 !important;
    padding: 12px 24px !important;
    text-align: right !important;
}

/* 主按钮（确定） */
.layui-layer-btn a,
.layui-layer-btn .layui-layer-btn0 {
    background: #4572f7 !important;
    border: 1px solid #4572f7 !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 5px 16px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    height: 32px !important;
    line-height: 20px !important;
    transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
    box-shadow: 0 2px 0 rgba(69, 114, 247, 0.1) !important;
    margin-left: 8px !important;
}

.layui-layer-btn a:hover,
.layui-layer-btn .layui-layer-btn0:hover {
    background: #3461e0 !important;
    border-color: #3461e0 !important;
}

/* 次按钮（取消） */
.layui-layer-btn .layui-layer-btn1 {
    background: #fff !important;
    border: 1px solid #d9d9d9 !important;
    color: rgba(0, 0, 0, 0.88) !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02) !important;
}

.layui-layer-btn .layui-layer-btn1:hover {
    border-color: #4572f7 !important;
    color: #4572f7 !important;
    background: #fff !important;
}

/* 关闭按钮区域 */
.layui-layer-setwin {
    top: 14px !important;
    right: 16px !important;
}

/* 关闭按钮 */
.layui-layer-setwin a {
    width: 22px !important;
    height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    transition: background 0.2s !important;
}

.layui-layer-setwin .layui-layer-close1,
.layui-layer-setwin .layui-layer-close2 {
    background: none !important;
    font-size: 0 !important;
    position: relative !important;
    cursor: pointer !important;
}

/* 用伪元素画 X 关闭图标 */
.layui-layer-setwin .layui-layer-close1::before,
.layui-layer-setwin .layui-layer-close1::after,
.layui-layer-setwin .layui-layer-close2::before,
.layui-layer-setwin .layui-layer-close2::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 12px !important;
    height: 1.5px !important;
    background: rgba(0, 0, 0, 0.45) !important;
    transition: background 0.2s !important;
}

.layui-layer-setwin .layui-layer-close1::before,
.layui-layer-setwin .layui-layer-close2::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

.layui-layer-setwin .layui-layer-close1::after,
.layui-layer-setwin .layui-layer-close2::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.layui-layer-setwin a:hover {
    background: rgba(0, 0, 0, 0.06) !important;
}

.layui-layer-setwin a:hover::before,
.layui-layer-setwin a:hover::after {
    background: rgba(0, 0, 0, 0.88) !important;
}

/* Prompt / Page 类型 - 内容区域 iframe */
.layui-layer-iframe .layui-layer-content {
    padding: 0 !important;
}

/* 最小化/最大化按钮隐藏（一般不需要）*/
.layui-layer-setwin .layui-layer-min,
.layui-layer-setwin .layui-layer-max {
    display: none !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .layui-layer {
        min-width: 280px !important;
        max-width: calc(100vw - 32px) !important;
    }
    
    .layui-layer-title {
        padding: 12px 16px !important;
        font-size: 15px !important;
    }
    
    .layui-layer-content {
        padding: 16px !important;
    }
    
    .layui-layer-btn {
        padding: 10px 16px !important;
    }
}

/* ====================================
   Ant Design 标准化微调
   ==================================== */

/* 滚动条美化 - 分类列表 & 商品列表 */
.category_list::-webkit-scrollbar,
.goods_list::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.category_list::-webkit-scrollbar-track,
.goods_list::-webkit-scrollbar-track {
    background: transparent;
}

.category_list::-webkit-scrollbar-thumb,
.goods_list::-webkit-scrollbar-thumb {
    background: #d9d9d9;
    border-radius: 4px;
}

.category_list::-webkit-scrollbar-thumb:hover,
.goods_list::-webkit-scrollbar-thumb:hover {
    background: #bfbfbf;
}

/* 商品列表空状态提示（CSS 备用，实际由 DOM 元素处理） */
.goods_list:empty::after {
    content: '请点击上方分类查看商品';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 48px 0;
    font-size: var(--font-size-base);
    color: var(--color-text-tertiary);
    letter-spacing: 0.5px;
}

/* 分类卡片 loading 脉动 */
.category_box.loading .card {
    animation: antPulse 0.6s ease;
}

@keyframes antPulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* hr 分隔线 Ant Design 风格 */
.section.details__section hr,
.container hr,
hr.mt-4 {
    border: none;
    height: 1px;
    background: #f0f0f0;
    margin: 24px 0;
}

/* 支付方式选中光晕 - Ant Design 风格 */
#order_box .pay_type_leng.active {
    box-shadow: 0 0 0 2px rgba(69, 114, 247, 0.2), 0 2px 8px rgba(69, 114, 247, 0.15) !important;
}

/* ====================================
   响应式
   ==================================== */

@media (max-width: 768px) {
    .search-wrapper {
        padding: 0 15px;
    }
    
    .search-section {
        flex-direction: column;
    }
    
    .search-input-box {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .search-button {
        width: 100%;
    }
    
    /* 移动端商品卡片优化 */
    .goods_list .goods_box {
        padding: 0 8px;
        margin-bottom: 16px;
    }
    
    .goods_list .goods_box .card__wrap {
        padding: 12px;
    }
    
    .goods_list .goods_box .card__detail h3 {
        font-size: 14px;
        min-height: 42px;
    }
    
    .goods_list .goods_box .card__detail_price {
        font-size: 18px;
    }
}

/* ====================================
   prefers-reduced-motion (WCAG 2.3.3)
   ==================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .recommend-text,
    .recommend-text:first-child,
    .recommend-text:nth-child(2) {
        animation: none !important;
        position: static !important;
        padding-right: 24px !important;
        display: inline !important;
    }

    .recommend-content {
        white-space: normal !important;
        overflow: visible !important;
    }
}
