:root {
    --primary-color: #FFB6C1;
    --primary-light: #FFC8D0;
    --primary-dark: #FF99A3;
    --secondary-color: #FFC0CB;
    --text-color: #333333;
    --background-color: #FFF5F6;
    --text-light: #666666;
    --border-color: #FFE4E8;
}

* {
    margin: 0;
    /* padding: 0; */
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--background-color);
    min-height: 100vh;
    padding-bottom: 60px;
    color: #323233;
}

.page-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 65px;
}

/* 顶部区域样式 */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 26px 20px 59px;
    /* position: relative; */
    border-radius: 0 0 35px 35px;
    overflow: hidden;
}

.header:before {
    content: '';
    position: absolute;
    /* top: -50%; */
    /* left: -50%; */
    /* width: 200%; */
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.header:after {
    content: '';
    position: absolute;
    left: 0;
    /* right: 0; */
    /* bottom: -1px; */
    /* height: 35px; */
    /* background: #f7f8fa; */
    border-radius: 35px 35px 0 0;
}

.logo-box {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    object-fit: cover;
}

.site-info {
    margin-left: 12px;
}

.site-name {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.3px;
}

/* 功能按钮样式 */
.func-btns {
    display: flex;
    justify-content: space-around;
    padding: 0 15px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.func-btn {
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 12px 8px;
    width: 31%;
    box-shadow: 0 5px 15px rgba(255,105,180,0.1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.func-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.num-circle {
    font-size: 15px;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-weight: 500;
}

.func-btn .text {
    font-size: 12px;
    color: #646566;
}

/* 分类导航样式优化 */
.categories-wrapper {
    padding: 15px;
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

.category-nav-item {
    flex: 1;
    min-width: calc(50% - 6px);
    margin: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-nav-inner {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid rgba(255,182,193,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-nav-inner:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,182,193,0.05), rgba(255,105,180,0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.category-icon {
    width: 46px;
    height: 46px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    margin: 0;
}

.category-icon .material-icons-round {
    color: var(--primary-color);
    font-size: 26px;
    transition: all 0.3s;
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

/* 激活状态样式 */
.category-nav-item.active .category-nav-inner {
    background: rgba(255, 182, 193, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.15);
    border-color: var(--primary-light);
}

.category-nav-item.active .category-nav-inner:after {
    opacity: 1;
}

.category-nav-item.active .category-icon {
    background: var(--primary-light);
}

.category-nav-item.active .material-icons-round {
    color: var(--primary-color);
}

.category-nav-item.active .category-name {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 悬停效果 */
.category-nav-inner:hover {
    background: rgba(255, 182, 193, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.1);
}

/* 点击效果 */
.category-nav-item:active .category-nav-inner {
    transform: scale(0.98);
}

/* 移动端适配 */
@media screen and (max-width: 340px) {
    .categories-wrapper {
        padding: 10px;
    }
    
    .category-nav {
        gap: 8px;
    }
    
    .category-nav-item {
        min-width: 100%;
    }
    
    .category-nav-inner {
        padding: 12px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
    }
    
    .category-icon .material-icons-round {
        font-size: 22px;
    }
}

/* 分类内容区域 */
.category-content {
    display: none;
    margin-top: 20px;
}

.category-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.goods-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 30px 0;
    color: #969799;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.empty-state .text {
    font-size: 14px;
}

/* 底部导航栏样式优化 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    padding: 8px 0 5px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 0;
    color: #999;
    position: relative;
    transition: all 0.3s ease;
}

.nav-item .material-icons-round {
    font-size: 24px;
    margin-bottom: 3px;
    transition: all 0.3s ease;
}

.nav-item .text {
    font-size: 12px;
    transition: all 0.3s ease;
}

/* 激活状态样式 */
.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    opacity: 0.8;
}

/* 点击效果 */
.nav-item:active {
    transform: scale(0.95);
}

/* 添加涟漪效果 */
.nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-item:active::before {
    width: 40px;
    height: 40px;
}

/* 图标动画效果 */
.nav-item:hover .material-icons-round {
    transform: translateY(-2px);
}

/* 为了防止底部内容被导航栏遮挡 */
.page-container {
    padding-bottom: 65px;
}

/* 优化导航项间距 */
.nav-item + .nav-item {
    position: relative;
}

.nav-item + .nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(0,0,0,0.05);
}

/* 商品卡片样式优化 */
.goods-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(255,105,180,0.05);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
}

.goods-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    background-color: var(--primary-light);
}

.goods-img {
    position: relative;
    padding-top: 100%;
    background: #fafafa;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.goods-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    border-radius: 12px 12px 0 0;
}

.goods-card:active .goods-img img {
    transform: scale(1.05);
}

.sold-out-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(255,255,255,0.85); */
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.sold-out-mask span {
    color: #fff;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(150,151,153,0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transform: translateY(0);
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.goods-info {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.goods-title {
    font-size: 14px;
    color: #323233;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    flex: 1;
}

.goods-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.price-wrap {
    display: flex;
    align-items: baseline;
}

.price-symbol {
    font-size: 12px;
    color: var(--primary-dark);
    margin-right: 1px;
    font-weight: 500;
}

.price-value {
    font-size: 17px;
    color: var(--primary-dark);
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, Arial;
}

.buy-btn {
    width: 22px;
    height: 22px;
    background: var(--primary-color);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.buy-btn:active {
    transform: scale(0.9);
    background: var(--primary-dark);
}

.buy-btn i {
    color: #fff;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.buy-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s;
}

.buy-btn:active:before {
    transform: translate(-50%, -50%) scale(2);
}

.buy-btn.disabled {
    background: #ebedf0;
    pointer-events: none;
}

/* 商品列表布局优化 */
.goods-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0;
    margin-bottom: 15px;
    background: transparent;
    box-shadow: none;
}

/* 空状态样式优化 */
.empty-tip {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 0;
    color: #969799;
    font-size: 14px;
    background: #fff;
    border-radius: 12px;
    margin: 0;
}

.empty-tip:before {
    content: '\ee1c';
    font-family: 'remixicon';
    display: block;
    font-size: 36px;
    margin-bottom: 8px;
    opacity: 0.3;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
} 

/* 商品数量标签 */
.goods-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--primary-dark);
    border-radius: 9px;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(255,20,147,0.2);
    border: 1.5px solid #fff;
}

/* 激活状态的样式 */
.category-nav-item.active .goods-count {
    background: #fff;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.category-nav-item.active .icon-wrap {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,105,180,0.2);
}

.category-nav-item.active i {
    color: #fff;
}

.category-nav-item.active .text {
    color: var(--primary-color);
    font-weight: 500;
}

/* 商品库存数量标签 */
.stock-count {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 2px 6px;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    color: #fff;
    font-size: 10px;
    line-height: 1.4;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* 商品卡片悬停时的效果 */
.goods-card:hover .stock-count {
    background: rgba(255,105,180,0.8);
}

/* 售罄商品的样式调整 */
.sold-out .stock-count {
    display: none;
} 

/* 图标基础样式 */
svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 导航图标样式 */
.nav-item svg {
    display: block;
    margin: 0 auto 4px;
    opacity: 0.75;
    color: #666;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    stroke-width: 1.5;
}

/* 分类图标样式 */
.icon-wrap svg {
    display: block;
    margin: auto;
    opacity: 0.85;
    color: var(--primary-color);
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    stroke-width: 1.5;
}

/* 功能按钮图标 */
.func-btn .num-circle svg {
    opacity: 0.9;
    color: var(--primary-color);
    transform: scale(0.85);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    stroke-width: 1.5;
}

/* 激活状态 */
.nav-item.active svg {
    color: var(--primary-color);
    opacity: 1;
    transform: scale(1.1);
    stroke-width: 2;
}

.category-nav-item.active .icon-wrap svg {
    color: #fff;
    opacity: 1;
    transform: scale(0.95);
    stroke-width: 2;
}

/* 悬停效果 */
.nav-item:hover svg {
    color: var(--primary-color);
    opacity: 0.9;
    stroke-width: 1.75;
}

.icon-wrap:hover svg {
    opacity: 1;
    transform: scale(0.95);
    stroke-width: 1.75;
}

.func-btn:hover .num-circle svg {
    opacity: 1;
    transform: scale(0.9);
    stroke-width: 1.75;
}

/* 主题色更新 */
:root {
    --primary-color: #FFB6C1;
    --primary-light: #FFC8D0;
    --primary-dark: #FF99A3;
}

/* 图标基础样式 */
.material-icons-round {
    font-size: 24px !important;
    color: currentColor;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 导航图标样式 */
.nav-item .material-icons-round {
    display: block;
    margin: 0 auto 4px;
    opacity: 0.75;
    color: #666;
    font-size: 22px !important;
}

/* 分类图标样式 */
.icon-wrap .material-icons-round {
    display: block;
    margin: auto;
    opacity: 0.85;
    color: var(--primary-color);
    transform: scale(0.9);
    font-size: 24px !important;
}

/* 功能按钮图标 */
.func-btn .num-circle .material-icons-round {
    opacity: 0.9;
    color: var(--primary-color);
    transform: scale(0.85);
    font-size: 20px !important;
}

/* 激活状态 */
.nav-item.active .material-icons-round {
    color: var(--primary-color);
    opacity: 1;
    transform: scale(1.1);
}

.category-nav-item.active .icon-wrap .material-icons-round {
    color: #fff;
    opacity: 1;
    transform: scale(0.95);
}

/* 悬停效果 */
.nav-item:hover .material-icons-round {
    color: var(--primary-color);
    opacity: 0.9;
}

.icon-wrap:hover .material-icons-round {
    opacity: 1;
    transform: scale(0.95);
}

.func-btn:hover .num-circle .material-icons-round {
    opacity: 1;
    transform: scale(0.9);
}

/* 商品卡片中的加号图标 */
.buy-btn .material-icons-round {
    color: #fff;
    font-size: 18px !important;
}

/* 购买表单区域 */
.purchase-form {
    margin-top: 20px;
    background: #fff;
    padding: 15px;
}

/* 数量选择器容器 */
.quantity-item {
    margin-bottom: 15px;
}

.item-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

/* 数量控制器 */
.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    width: 120px;
}

.ctrl-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.ctrl-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
}

#goods_quantity {
    width: 48px;
    text-align: center;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    height: 36px;
    font-size: 14px;
    color: #333;
    background: #fff;
}

/* QQ输入框样式 */
.qq-item {
    margin-bottom: 15px;
}

.input-field {
    width: 93%;
    height: 36px;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    color: #333;
    background: #fff;
}

.input-field:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* 支付方式选择 */
.payment-section {
    margin-bottom: 15px;
}

.payment-methods {
    display: flex;
    gap: 10px;
}

.payment-method {
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
}

.payment-method.active {
    background: #fff5f8;
    border-color: var(--primary-color);
}

.payment-method.active .method-name {
    color: var(--primary-color);
}

.method-name {
    font-size: 14px;
    color: #333;
}

/* 底部操作栏 */
.popup-footer {
    padding: 12px 15px;
    border-top: 1px solid #f5f5f5;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.total-amount {
    display: flex;
    align-items: baseline;
}

.total-amount .label {
    font-size: 14px;
    color: #333;
    margin-right: 4px;
}

.total-amount .amount {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 500;
}

.total-amount .symbol {
    font-size: 14px;
    margin-right: 2px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 0 20px;
    height: 36px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 182, 193, 0.3);
}

.submit-btn:active:not(.disabled) {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(255, 182, 193, 0.2);
}

.submit-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 移动端适配 */
@media screen and (max-width: 480px) {
    .purchase-form {
        padding: 12px;
    }
    
    .popup-footer {
        padding: 10px 12px;
    }
}

/* 售罄遮罩 */
.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

/* 商品详情弹窗 */
.detail-popup {
    background: #fff;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

/* 优化弹窗头部样式 */
.popup-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 15px;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.popup-header .close-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 101;
}

.popup-header .title {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* 优化商品图片容器样式 */
.detail-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #f8f9fa;
}

.goods-image-container {
    background: #fff;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.detail-popup .goods-image {
    width: 100%;
    height: 0;
    padding-bottom: 70%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
}

.detail-popup .goods-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 售罄遮罩层优化 */
.detail-popup .sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* 商品信息区域 */
.goods-info-box {
    margin: 0 12px 12px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.price {
    display: flex;
    align-items: baseline;
}

.price-symbol {
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 500;
}

.price-value {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 1px;
}

.stock {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
}

.stock-num.empty {
    color: #ff4d4f;
}

.goods-name {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 500;
}

.goods-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* 购买表单区域 */
.purchase-form {
    margin: 0 12px 12px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.form-group {
    margin-bottom: 15px;
}

.form-item {
    margin-bottom: 15px;
}

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

.item-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

/* 数量选择器 */
.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 8px;
    width: 110px;
    height: 36px;
    background: #f8f9fa;
    overflow: hidden;
}

.ctrl-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.ctrl-btn:active:not(.disabled) {
    background: rgba(0,0,0,0.05);
}

.ctrl-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
}

#goods_quantity {
    width: 38px;
    text-align: center;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    height: 36px;
    font-size: 14px;
    color: #333;
    background: #fff;
}

/* QQ输入框 */
.input-field {
    width: 93%;
    height: 36px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    color: #333;
    background: #f8f9fa;
    transition: all 0.2s;
}

.input-field:focus {
    border-color: var(--primary-color);
    background: #fff;
    outline: none;
}

/* 支付方式区域 */
.payment-section {
    margin-top: 20px;
}

.section-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.payment-methods {
    display: flex;
    gap: 10px;
}

.payment-method {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method:active {
    background: #f5f5f5;
}

.payment-method.active {
    background: #fff5f5;
    border-color: var(--primary-color);
}

.payment-method.active .method-name {
    color: var(--primary-color);
    font-weight: 500;
}

.method-icon {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.method-icon.alipay {
    background-image: url('../img/alipay.png');
}

.method-icon.wxpay {
    background-image: url('../img/wxpay.png');
}

.method-name {
    font-size: 14px;
    color: #333;
}

/* 底部操作栏 */
.popup-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    border-top: 1px solid #f5f5f5;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 99;
}

/* 移动端适配 */
@media screen and (max-width: 480px) {
    .goods-info-box,
    .purchase-form {
        margin: 0 8px 8px;
        padding: 12px;
    }
    
    .popup-footer {
        padding: 10px 12px;
    }
}

/* 售罄商品卡片样式 */
.goods-card.sold-out {
    opacity: 0.85;
}

.goods-card.sold-out .goods-img img {
    filter: grayscale(0.6);
}

.goods-card.sold-out:hover .sold-out-mask {
    background: rgba(255,255,255,0.9);
}

.goods-card.sold-out:hover .sold-out-mask span {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 售罄商品价格样式 */
.goods-card.sold-out .price-value,
.goods-card.sold-out .price-symbol {
    color: #999;
    text-decoration: line-through;
}

.goods-card.sold-out .buy-btn {
    background: #ebedf0;
    pointer-events: none;
}

.goods-card.sold-out .buy-btn i {
    color: #999;
}

/* 添加图片悬停效果 */
.goods-card:hover .goods-img img {
    transform: scale(1.03);
}

.goods-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255,105,180,0.08);
    transform: translateY(-1px);
}

/* 图片加载动画 */
.goods-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0) 100%);
    animation: shimmer 1.5s infinite;
    transform: translateX(-100%);
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* 售罄商品图片效果优化 */
.goods-card.sold-out .goods-img img {
    filter: grayscale(0.6) brightness(0.95);
    transition: all 0.3s ease;
}

.goods-card.sold-out:hover .goods-img img {
    filter: grayscale(0.4) brightness(0.98);
}

/* 商品图片底部渐变阴影 */
.goods-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.03) 0%,
        rgba(0,0,0,0) 100%);
    pointer-events: none;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}