/* ========== 统一操作按钮 & 抽屉 & 弹窗样式 ========== */
/* 列表页用 .action-btn-list（小按钮），详情页用 .action-btn-detail（大按钮） */

/* ---- 基础按钮样式 ---- */
#html-container .action-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

#html-container .action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-style: solid;
    border-width: 1px;
    border-radius: 4px;
    /* font-family: 'Microsoft YaHei', sans-serif; */
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: nowrap;
    background-color: #ffffff;
    outline: none;
}

#html-container .action-btn-icon {
    flex-shrink: 0;
}

#html-container .action-btn-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

#html-container .action-btn-text {
    white-space: nowrap;
}

/* ---- 颜色变体 ---- */
#html-container .action-btn-add {
    border-color: #7ab530;
    color: #7ab530;
}
#html-container .action-btn-add:hover {
    background-color: #7ab530;
    color: #ffffff;
}
#html-container .action-btn-add:hover .action-btn-icon img {
    filter: brightness(0) invert(1);
}

#html-container .action-btn-share {
    border-color: #555555;
    color: #4a5565;
}
#html-container .action-btn-share:hover {
    background-color: #555555;
    color: #ffffff;
}
#html-container .action-btn-share:hover .action-btn-icon img {
    filter: brightness(0) invert(1);
}

#html-container .action-btn-poster {
    border-color: #7ab530;
    color: #7ab530;
}
#html-container .action-btn-poster:hover {
    background-color: #7ab530;
    color: #ffffff;
}
#html-container .action-btn-poster:hover .action-btn-icon img {
    filter: brightness(0) invert(1);
}

/* ---- 列表页按钮（小尺寸，用于卡片内） ---- */
#html-container .action-btn-list {
    height: 28px;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 20px;
    gap: 5px;
}
#html-container .action-btn-list .action-btn-icon {
    width: 14px;
    height: 14px;
}

#html-container .action-btn-detail {
    padding: 13px 25px;
    font-size: 16px;
    line-height: 24px;
    border-radius: 10px;
    gap: 8px;
}
#html-container .action-btn-detail .action-btn-icon {
    width: 18px;
    height: 18px;
}
/* "加入产品清单" 按钮边框加粗 */
#html-container .action-btn-detail.action-btn-add {
    padding: 14px 34px;
    border-width: 2px;
}

/* ---- 列表页卡片内操作按钮组 ---- */
#html-container .card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ========== 产品清单抽屉 ========== */
#html-container .drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#html-container .drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

#html-container .drawer {
    position: fixed;
    top: 0;
    right: -380px;
    width: 380px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}
#html-container .drawer.active {
    right: 0;
}

#html-container .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 17px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}
#html-container .drawer-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
#html-container .drawer-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
#html-container .drawer-icon img {
    width: 100%;
    height: 100%;
    display: block;
}
#html-container .drawer-title {
    /* font-family: 'Inter', 'Microsoft YaHei', sans-serif; */
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #1e2939;
    white-space: nowrap;
}
#html-container .drawer-badge {
    background-color: #7ab530;
    color: #ffffff;
    /* font-family: 'Inter', 'Microsoft YaHei', sans-serif; */
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    padding: 2px 8px;
    border-radius: 33554400px;
    min-width: 20px;
    text-align: center;
}
#html-container .drawer-close-btn {
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}
#html-container .drawer-close-btn:hover { opacity: 0.7; }
#html-container .drawer-close-btn img {
    width: 100%;
    height: 100%;
    display: block;
}

#html-container .drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}

#html-container .product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-bottom: 1px solid #eee;
    margin-bottom: 9px;
}
#html-container .product-item:last-child { margin-bottom: 0; }

#html-container .product-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
#html-container .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#html-container .product-info {
    flex: 1;
    min-width: 0;
}
#html-container .product-name {
    /* font-family: 'Inter', 'Microsoft YaHei', sans-serif; */
    font-weight: 400;
    font-size: 14px;
    line-height: 19.25px;
    color: #1e2939;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#html-container .product-remove-btn {
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}
#html-container .product-remove-btn:hover { opacity: 0.7; }
#html-container .product-remove-btn img {
    width: 100%;
    height: 100%;
    display: block;
}

#html-container .drawer-footer {
    padding: 17px 16px;
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
}
#html-container .drawer-btn {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    /* font-family: 'Inter', 'Microsoft YaHei', sans-serif; */
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
}
#html-container .drawer-btn-share {
    background-color: #7ab530;
    color: #ffffff;
    gap: 8px;
    margin-bottom: 8px;
}
#html-container .drawer-btn-share:hover {
    background-color: #6a9e28;
}
#html-container .drawer-btn-continue {
    background-color: #ffffff;
    color: #4a5565;
    border: 1px solid #e5e7eb;
}
#html-container .drawer-btn-continue:hover {
    border-color: #7ab530;
    color: #7ab530;
}
#html-container .drawer-btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
#html-container .drawer-btn-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

/* ========== 分享弹窗 ========== */
#html-container .share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
#html-container .share-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
#html-container .share-modal {
    background-color: #ffffff;
    width: 500px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
#html-container .share-modal-overlay.active .share-modal {
    transform: scale(1);
}
#html-container .share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}
#html-container .share-modal-title {
    /* font-family: 'Inter', 'Microsoft YaHei', sans-serif; */
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    color: #1e2939;
}
#html-container .share-modal-close-btn {
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}
#html-container .share-modal-close-btn:hover { opacity: 0.7; }
#html-container .share-modal-close-btn img {
    width: 100%;
    height: 100%;
    display: block;
}
#html-container .share-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}
#html-container .share-info-bar {
    display: none;
    background-color: #f0fdf4;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    align-items: center;
    gap: 8px;
}
#html-container .share-info-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
#html-container .share-info-icon img {
    width: 100%;
    height: 100%;
    display: block;
}
#html-container .share-info-text {
    /* font-family: 'Inter', 'Microsoft YaHei', sans-serif; */
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #166534;
}
#html-container .share-product-list { margin-bottom: 24px; max-height: 285px;overflow-y: scroll;}
#html-container .share-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: #fafafa;
    border-radius: 8px;
    margin-bottom: 12px;
}
#html-container .share-product-item:last-child { margin-bottom: 0; }
#html-container .share-product-image {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
#html-container .share-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#html-container .share-product-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#html-container .share-product-name {
    /* font-family: 'Inter', 'Microsoft YaHei', sans-serif; */
    font-weight: 500;
    font-size: 15px;
    line-height: 22px;
    color: #1e2939;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
#html-container .share-product-company {
    /* font-family: 'Inter', 'Microsoft YaHei', sans-serif; */
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    color: #64748b;
}
#html-container .share-content-section { margin-bottom: 24px; }
#html-container .share-content-title {
    /* font-family: 'Inter', 'Microsoft YaHei', sans-serif; */
    font-weight: 500;
    font-size: 15px;
    line-height: 22px;
    color: #1e2939;
    margin-bottom: 16px;
}
#html-container .share-content-options {
    display: flex;
    gap: 24px;
    margin-bottom: 8px;
    margin-top: 8px;
}
#html-container .share-option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
#html-container .share-option-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}
#html-container .share-option-item input:checked + .share-option-checkbox {
    background-color: #7ab530;
    border-color: #7ab530;
}
#html-container .share-option-item input:checked + .share-option-checkbox::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
#html-container .share-option-label {
    /* font-family: 'Inter', 'Microsoft YaHei', sans-serif; */
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #475569;
}
#html-container .share-detail-options {
    background-color: #fafafa;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
#html-container .share-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
#html-container .share-detail-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}
#html-container .share-detail-item input,#html-container .share-option-item input{
    opacity: 0;
}
#html-container .share-detail-item input:checked + .share-detail-checkbox {
    background-color: #7ab530;
    border-color: #7ab530;
}
#html-container .share-detail-item input:checked + .share-detail-checkbox::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
#html-container .share-detail-label {
    /* font-family: 'Inter', 'Microsoft YaHei', sans-serif; */
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    color: #64748b;
}
#html-container button{outline: none;}
#html-container  .share-link-create{
    display: flex;
    justify-content: center;
    text-align: center;
}
#html-container .share-link-section {    
    display: none;
    gap: 12px;
    align-items: center;
}
#html-container .share-link-input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    /* font-family: 'Inter', 'Microsoft YaHei', sans-serif; */
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    color: #475569;
    background-color: #fafafa;
    outline: none;
    transition: border-color 0.2s ease;
}
#html-container .share-link-input:focus { border-color: #7ab530; }
#html-container .share-link-input::placeholder { color: #94a3b8; }
#html-container .share-copy-btn {
    height: 44px;
    padding: 0 24px;
    background-color: #7ab530;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    /* font-family: 'Inter', 'Microsoft YaHei', sans-serif; */
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}
#html-container .share-copy-btn:hover { background-color: #6a9e28; }
#html-container .share-copy-btn.copied { background-color: #166534; }

/* ========== 海报弹窗 ========== */
#html-container .poster-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
#html-container .poster-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
#html-container .poster-modal {
    background-color: #ffffff;
    width: 500px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
#html-container .poster-modal-overlay.active .poster-modal {
    transform: scale(1);
}
#html-container .poster-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}
#html-container .poster-modal-title {
    /* font-family: 'Inter', 'Microsoft YaHei', sans-serif; */
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    color: #1e2939;
}
#html-container .poster-modal-close-btn {
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}
#html-container .poster-modal-close-btn:hover { opacity: 0.7; }
#html-container .poster-modal-close-btn img {
    width: 100%;
    height: 100%;
    display: block;
}
#html-container .poster-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
#html-container .poster-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
#html-container .poster-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: #f5f5f5;
    overflow: hidden;
}
#html-container .poster-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#html-container .poster-info { padding: 20px; }
#html-container .poster-company {
    /* font-family: 'Inter', 'Microsoft YaHei', sans-serif; */
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #1e2939;
    margin-bottom: 16px;
}
#html-container .poster-salesman {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
#html-container .poster-salesman-label {
    /* font-family: 'Inter', 'Microsoft YaHei', sans-serif; */
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #64748b;
}
#html-container .poster-qr-code {
    width: 80px;
    height: 80px;
    background-color: #fafafa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#html-container .poster-qr-code svg,#html-container .poster-qr-code img {
    width: 70px;
    height: 70px;
}
#html-container .poster-description {
    /* font-family: 'Inter', 'Microsoft YaHei', sans-serif; */
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #94a3b8;
}
#html-container .poster-download-btn {
    margin-top: 24px;
    width: 100%;
    height: 48px;
    background-color: #7ab530;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    /* font-family: 'Inter', 'Microsoft YaHei', sans-serif; */
    font-weight: 500;
    font-size: 15px;
    line-height: 22px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
#html-container .poster-download-btn:hover { background-color: #6a9e28; }
#html-container .poster-download-btn:active { background-color: #5a8622; }

/* ========== 侧边浮动按钮 ========== */
#html-container .floating-btn {
    display: none;
    position: fixed;
    top: 69%;
    right: 0;
    transform: translateY(-50%);
    z-index: 999;
    width: 88px;
    padding: 14px 10px 12px;
    background-color: #7ab530;
    color: #ffffff;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.12);
}
#html-container .floating-btn:hover { background-color: #6a9e28; }
#html-container .floating-btn-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background-color: #ff6b35;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    box-sizing: border-box;
}
#html-container .floating-btn-icon {
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 auto 6px;
}
#html-container .floating-btn-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
#html-container .floating-btn-text {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
    
}

/* ========== 响应式 - 按钮 ========== */
@media (max-width: 768px) {
    #html-container .action-group {
        gap: 10px;
        justify-content: center;
    }
    #html-container .action-btn-detail {
        font-size: 14px;
        padding: 8px 16px;
        border-radius: 8px;
    }
    #html-container .action-btn-detail .action-btn-icon {
        width: 16px;
        height: 16px;
    }
    #html-container .action-btn-detail.action-btn-add {
        padding: 8px 20px;
        border-width: 2px;
    }
}

@media (max-width: 410px) {
    #html-container .action-group { gap: 8px; }
    #html-container .action-btn-detail {
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 6px;
    }
    #html-container .action-btn-detail .action-btn-icon {
        width: 14px;
        height: 14px;
    }
    #html-container .action-btn-detail.action-btn-add {
        padding: 6px 16px;
        border-width: 2px;
    }
    #html-container .action-btn-list {
        height: 26px;
        padding: 2px 6px;
        font-size: 10px;
        gap: 3px;
    }
    #html-container .action-btn-list .action-btn-icon {
        width: 12px;
        height: 12px;
    }
}

/* ========== 响应式 - 抽屉 ========== */
@media (max-width: 410px) {
    #html-container .drawer {
        width: 340px;
        right: -340px;
    }
    #html-container .drawer.active { right: 0; }
    #html-container .drawer-header { padding: 14px 16px 15px; }
    #html-container .drawer-title { font-size: 15px; }
    #html-container .product-item { padding: 6px; gap: 10px; }
    #html-container .product-image { width: 40px; height: 40px; }
    #html-container .product-name { font-size: 13px; }
    #html-container .drawer-footer { padding: 14px 14px; }
}

/* ========== 响应式 - 分享弹窗 ========== */
@media (max-width: 560px) {
    #html-container .share-modal { width: 90%; max-width: 400px; }
    #html-container .share-modal-header { padding: 20px; }
    #html-container .share-modal-body { padding: 20px; }
    #html-container .share-product-item { padding: 12px; gap: 10px; }
    #html-container .share-product-image { width: 56px; height: 56px; }
    #html-container .share-content-options { gap: 16px; }
    #html-container .share-detail-options { gap: 8px; padding: 12px 0; }
    #html-container .share-link-section { }
    #html-container .share-link-input { width: 100%; }
    #html-container .share-copy-btn { width: 100%; padding: 0;}
    #html-container .new-copy-btn { width: 100%; padding: 0; max-width: 80px;}
    
}

/* ========== 响应式 - 海报弹窗 ========== */
@media (max-width: 560px) {
    #html-container .poster-modal { width: 90%; max-width: 400px; }
    #html-container .poster-modal-header { padding: 20px; }
    #html-container .poster-modal-body { padding: 20px; }
    #html-container .poster-info { padding: 16px; }
    #html-container .poster-qr-code { width: 64px; height: 64px; }
    #html-container .poster-qr-code svg { width: 56px; height: 56px; }
}

/* ========== 响应式 - 浮动按钮 ========== */
@media (max-width: 767px) {
    #html-container .floating-btn {
        width: 64px;
        padding: 10px 6px 8px;
        border-radius: 10px 0 0 10px;
    }
    #html-container .floating-btn-badge {
        top: 6px; right: 6px;
        min-width: 16px; height: 16px;
        padding: 0 4px;
        font-size: 10px; line-height: 16px;
        border-radius: 8px;
    }
    #html-container .floating-btn-icon { width: 22px; height: 22px; margin-bottom: 4px; }
    #html-container .floating-btn-text { font-size: 12px; }
}

/* ========== 产品列表页卡片样式（作用域 .product-list-page） ========== */
.product-list-page { padding-bottom: 40px; background-color: #f5f5f5; }

.product-list-page .product-list-header {
    text-align: center;
    padding: 40px 24px 24px;
}
.product-list-page .product-list-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #333333;
    line-height: 1.2;
}
.product-list-page .product-list-subtitle {
    margin: 8px 0 0;
    font-size: 14px;
    color: #999999;
}

.product-list-page .product-list-section { padding: 24px; }

.product-list-page .product-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-list-page .product-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-list-page .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.product-list-page .product-card-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: #f5f5f5;
    overflow: hidden;
}
.product-list-page .product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-list-page .product-card-body { padding: 16px; }

.product-list-page .product-card-tag {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 12px;
    background-color: #f0f0f0;
    border-radius: 14px;
    font-size: 12px;
    color: #666666;
    line-height: 1.4;
}
.product-list-page .product-card-tag::before {
    content: '';
    display: inline-block;
    width: 4px; height: 4px;
    margin-right: 6px;
    border-radius: 50%;
    background-color: #999999;
}

.product-list-page .product-card-name {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 700;
    color: #222222;
    line-height: 1.4;
}

.product-list-page .product-card-actions {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

/* ---- 列表页卡片内按钮（作用域 .product-list-page） ---- */
.product-list-page .action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    border-style: solid;
    border-width: 1px;
    border-radius: 4px;
    /* font-family: 'Microsoft YaHei', sans-serif; */
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: nowrap;
    background-color: #ffffff;
    outline: none;
}
.product-list-page .action-btn-icon {
    flex-shrink: 0;
}
.product-list-page .action-btn-icon img {
    width: 100%;
    height: 100%;
    display: block;
}
.product-list-page .action-btn-text {
    white-space: nowrap;
}

.product-list-page .action-btn-list {
    height: 28px;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 20px;
    gap: 5px;
}
.product-list-page .action-btn-list .action-btn-icon {
    width: 14px;
    height: 14px;
}

.product-list-page .action-btn-add {
    border-color: #7ab530;
    color: #7ab530;
}
.product-list-page .action-btn-add:hover {
    background-color: #7ab530;
    color: #ffffff;
}
.product-list-page .action-btn-add:hover .action-btn-icon img {
    filter: brightness(0) invert(1);
}

.product-list-page .action-btn-share {
    border-color: #555555;
    color: #4a5565;
}
.product-list-page .action-btn-share:hover {
    background-color: #555555;
    color: #ffffff;
}
.product-list-page .action-btn-share:hover .action-btn-icon img {
    filter: brightness(0) invert(1);
}

.product-list-page .action-btn-poster {
    border-color: #7ab530;
    color: #7ab530;
}
.product-list-page .action-btn-poster:hover {
    background-color: #7ab530;
    color: #ffffff;
}
.product-list-page .action-btn-poster:hover .action-btn-icon img {
    filter: brightness(0) invert(1);
}

.product-list-page .card-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* 列表页响应式 */
@media (min-width: 1200px) {
    .product-list-page .product-list-section { padding: 32px 40px; }
    .product-list-page .product-list-grid { gap: 24px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .product-list-page .product-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .product-list-page .product-list-title { font-size: 26px; }
}

@media (max-width: 767px) {
    .product-list-page .product-list-header { padding: 28px 16px 20px; }
    .product-list-page .product-list-title { font-size: 22px; }
    .product-list-page .product-list-section { padding: 16px; }
    .product-list-page .product-list-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .product-list-page .product-card-body { padding: 14px; }
    .product-list-page .product-card-tag { font-size: 11px; padding: 3px 10px; }
    .product-list-page .product-card-name { font-size: 14px; }
}

@media (max-width: 410px) {
    .product-list-page .action-btn-list {
        height: 26px;
        padding: 2px 6px;
        font-size: 10px;
        gap: 3px;
    }
    .product-list-page .action-btn-list .action-btn-icon {
        width: 12px;
        height: 12px;
    }
}

/* ========== 详情页容器（作用域 .detail-page） ========== */
.detail-page { padding-bottom: 40px; }

.detail-page .action-group {
    /* display: flex; */
    display: none;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding:0;
    max-width: 1200px;
    margin: 0 auto 16px;
}

.detail-page .detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.detail-page .detail-product-image {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    background-color: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}
.detail-page .detail-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-page .detail-product-name {
    font-size: 22px;
    font-weight: 700;
    color: #1e2939;
    margin: 0 0 12px;
}

.detail-page .detail-product-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 24px;
}

.detail-page .action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    border-style: solid;
    border-width: 1px;
    /* font-family: 'Microsoft YaHei', sans-serif; */
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: nowrap;
    background-color: #ffffff;
    outline: none;
}
.detail-page .action-btn-icon {
    flex-shrink: 0;
}
.detail-page .action-btn-icon img {
    width: 100%;
    height: 100%;
    display: block;
}
.detail-page .action-btn-text {
    white-space: nowrap;
}

.detail-page .action-btn-detail {
    padding: 13px 25px;
    font-size: 16px;
    line-height: 24px;
    border-radius: 10px;
    gap: 8px;
}
.detail-page .action-btn-detail .action-btn-icon {
    width: 18px;
    height: 18px;
}
.detail-page .action-btn-detail.action-btn-add {
    padding: 14px 34px;
    border-width: 2px;
}

.detail-page .action-btn-add {
    border-color: #7ab530;
    color: #7ab530;
}
.detail-page .action-btn-add:hover {
    background-color: #7ab530;
    color: #ffffff;
}
.detail-page .action-btn-add:hover .action-btn-icon img {
    filter: brightness(0) invert(1);
}

.detail-page .action-btn-share {
    border-color: #555555;
    color: #4a5565;
}
.detail-page .action-btn-share:hover {
    background-color: #555555;
    color: #ffffff;
}
.detail-page .action-btn-share:hover .action-btn-icon img {
    filter: brightness(0) invert(1);
}

.detail-page .action-btn-poster {
    border-color: #7ab530;
    color: #7ab530;
}
.detail-page .action-btn-poster:hover {
    background-color: #7ab530;
    color: #ffffff;
}
.detail-page .action-btn-poster:hover .action-btn-icon img {
    filter: brightness(0) invert(1);
}

/* 详情页响应式 */
@media (max-width: 768px) {
    .detail-page .action-group {
        gap: 10px;
        /* justify-content: center; */
    }
    .detail-page .action-btn-detail {
        font-size: 14px;
        padding: 8px 16px;
        border-radius: 8px;
    }
    .detail-page .action-btn-detail .action-btn-icon {
        width: 16px;
        height: 16px;
    }
    .detail-page .action-btn-detail.action-btn-add {
        padding: 8px 20px;
        border-width: 2px;
    }
}

@media (max-width: 767px) {
    /* .detail-page .action-group { padding: 20px 16px 0; } */
    .detail-page .detail-content { padding: 16px; }
    .detail-page .detail-product-name { font-size: 18px; }
}

@media (max-width: 410px) {
    .detail-page .action-group { gap: 8px; }
    .detail-page .action-btn-detail {
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 6px;
    }
    .detail-page .action-btn-detail .action-btn-icon {
        width: 14px;
        height: 14px;
    }
    .detail-page .action-btn-detail.action-btn-add {
        padding: 6px 16px;
        border-width: 2px;
    }
}
.action-btn-poster,.action-btn-share{
    display: none !important;
}