/* 自定义样式 */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: #f8f9fa;
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* H5宽度适配 */
* {
    box-sizing: border-box;
}

/* 防止长文本溢出 */
.goods-item * {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* H5适配 - 响应式类备用样式（防止Bootstrap加载失败） */
@media (max-width: 991.98px) {
    .d-lg-none {
        display: flex !important;
    }
    .d-none.d-lg-flex,
    .d-none.d-lg-block {
        display: none !important;
    }
    .d-lg-flex {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }
    .d-none.d-lg-flex {
        display: flex !important;
    }
    .d-none.d-lg-block {
        display: block !important;
    }
}

.container-fluid {
    max-width: 1400px;
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.2rem;
}

/* 统计卡片动画效果 */
.card {
    transition: transform 0.2s;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 商品列表样式 */
.goods-list {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
}

.goods-item {
    border-bottom: 1px solid #e9ecef;
    padding: 15px;
    transition: background-color 0.2s;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.goods-item:hover {
    background-color: #f8f9fa;
}

.goods-item:last-child {
    border-bottom: none;
}

.goods-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.goods-info {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 8px;
}

.goods-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 5px;
    flex: 1 1 auto;
    min-width: 150px;
    line-height: 1.5;
}

.goods-name {
    margin-bottom: 3px;
    width: 100%;
}

.goods-name strong {
    font-weight: 700;
    white-space: normal;
    display: inline;
}

.goods-number {
    font-size: 0.9rem;
    width: 100%;
}

.goods-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #dc3545;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.goods-price.sold {
    color: #28a745;
}

/* 溢价率样式 */
.premium-rate {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
    display: inline-block;
    flex-shrink: 0;
}

.premium-rate.premium-floor {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.premium-rate.premium-low {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.premium-rate.premium-medium {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.premium-rate.premium-high {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.premium-rate.premium-unknown {
    background: #e2e3e5;
    color: #495057;
    border: 1px solid #ced4da;
}

.goods-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.goods-description {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
    max-height: 40px;
    overflow: hidden;
    line-height: 1.3;
}

/* 状态标签 */
.status-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 同步状态标签 */
.badge {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.presale-badge {
    background-color: #ffc107;
    color: #000;
}

.on-sale-badge {
    background-color: #007bff;
    color: #fff;
}

.sold-badge {
    background-color: #28a745;
    color: #fff;
}

/* 分页样式 */
.pagination-sm .page-link {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* 监控状态指示器 */
#monitorStatus.bg-success {
    background-color: #28a745 !important;
}

#monitorStatus.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

#monitorStatus.bg-danger {
    background-color: #dc3545 !important;
}

/* 刷新按钮动画 */
.btn .fa-sync-alt {
    transition: transform 0.6s;
}

.btn.refreshing .fa-sync-alt {
    animation: spin 1s linear infinite;
}

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

/* 移动端导航栏样式 */
.navbar .d-lg-none .navbar-brand {
    font-size: 1rem;
    font-weight: bold;
}

#mobileMenuBtn {
    border: none;
    padding: 0.375rem 0.75rem;
}

#mobileSearchCollapse {
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
}

/* 确保折叠区域默认隐藏（防止Bootstrap JS加载失败） */
#mobileSearchCollapse.collapse:not(.show) {
    display: none;
}

/* 移动端商品列表样式 */
.mobile-goods-list {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
}

.mobile-goods-list .goods-item {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    width: 100%;
    box-sizing: border-box;
}

.mobile-goods-list .goods-item:last-child {
    border-bottom: none;
}

/* 移动端标签页样式 */
.nav-pills .nav-link {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.nav-pills .nav-link.active {
    background-color: var(--bs-primary);
}

.nav-pills .nav-link .badge {
    font-size: 0.7rem;
}

/* 移动端统计卡片样式 */
@media (max-width: 768px) {
    .card-body {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .card h4 {
        font-size: 1.2rem;
        margin-bottom: 0;
    }
}

/* 移动端商品头部一体化布局样式 */
.mobile-goods-header-info {
    font-size: 0.75rem;
    line-height: 1.3;
}

.mobile-goods-header-info .mx-1 {
    margin-left: 0.25rem !important;
    margin-right: 0.25rem !important;
}

.mobile-goods-header-info .badge.small {
    font-size: 0.6rem;
    padding: 2px 4px;
}

/* H5商品项布局优化 - 确保按钮可见 */
.goods-item .d-flex {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.goods-item .goods-info + div {
    flex-shrink: 0; /* 防止按钮区域被压缩 */
    margin-left: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 8px;
    }

    .card {
        margin-bottom: 12px;
    }
    
    /* 导航栏折叠搜索 */
    #mobileSearchCollapse .form-control,
    #mobileSearchCollapse .form-select {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    #mobileSearchCollapse .btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* 商品项目移动端优化 */
    .goods-image-container.single-image {
        width: 60px;
        flex-shrink: 0;
    }

    .goods-image-container.dual-images {
        width: 130px; /* 60px * 2 + 10px gap */
        flex-shrink: 0;
    }

    .goods-image.single-image,
    .goods-image.dual-image {
        width: 60px;
        height: 60px;
    }

    .goods-item .d-flex {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .goods-info {
        flex: 1 1 0%;
        min-width: 0;
    }

    /* H5下让标题行换行显示 */
    .goods-item .goods-info > .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 5px;
    }

    .goods-title {
        font-size: 0.9rem;
        line-height: 1.4;
        flex: 1 0 60%;
        min-width: 0;
    }

    .goods-name {
        margin-bottom: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .goods-name strong {
        font-weight: 700;
        font-size: 0.9rem;
    }

    /* 右侧控制区域 */
    .goods-item .d-flex.align-items-center.gap-2 {
        flex: 0 0 auto;
        gap: 5px !important;
    }

    /* 隐藏H5下的指示器徽章 */
    .goods-item .d-flex.align-items-center.gap-2 > .badge[style*="font-size: 10px"] {
        display: none;
    }

    .goods-item .btn-sm {
        white-space: nowrap;
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }

    .goods-item .status-badge {
        font-size: 0.6rem;
        padding: 2px 5px;
    }

    .goods-price {
        font-size: 0.95rem;
        margin-top: 3px;
    }

    .goods-meta {
        font-size: 0.7rem;
        margin-top: 2px;
        word-break: break-word;
        white-space: normal;
        line-height: 1.3;
    }

    .goods-description {
        font-size: 0.75rem;
        line-height: 1.2;
        max-height: 30px;
        word-break: break-word;
        overflow: hidden;
    }
    
    /* 移动端按钮大小调整 */
    .goods-item .btn-sm {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
        line-height: 1.2;
        white-space: nowrap;
    }

    .goods-item .btn-sm i {
        font-size: 0.75rem;
    }
    
    /* 状态标签 */
    .status-badge {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
    
    /* 分页样式 */
    .pagination-sm .page-link {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    /* 模态框适配 */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    /* 表单控件 */
    .form-control,
    .form-select {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 0.9rem;
    }
    
    /* 输入组 */
    .input-group-sm .form-control,
    .input-group-sm .form-select,
    .input-group-sm .input-group-text {
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
    }
    
    /* 卡片头部 */
    .card-header {
        padding: 0.5rem 0.75rem;
    }

    .card-header h5,
    .card-header h6 {
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .card-header .d-flex {
        flex-wrap: wrap;
        gap: 5px;
    }

    .card-header .badge {
        font-size: 0.65rem;
        white-space: nowrap;
    }

    .card-header .text-muted.small {
        font-size: 0.7rem;
    }
    
    /* 徽章 */
    .badge {
        font-size: 0.65rem;
    }
    
    /* 统计卡片图标隐藏 */
    .card .fa-2x {
        display: none;
    }
    
    /* 商品列表容器 */
    .goods-list {
        max-height: 60vh;
    }
    
    /* 移动端标签切换 */
    .nav-pills {
        background: #f8f9fa;
        border-radius: 0.5rem;
        padding: 0.25rem;
    }
    
    .nav-pills .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        border-radius: 0.375rem;
    }
    
    .nav-pills .nav-link.active {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}

/* 超小屏幕优化 (≤576px) */
@media (max-width: 576px) {
    .container-fluid {
        padding: 0 6px;
    }

    /* 防止表格和内容溢出 */
    .table-responsive {
        overflow-x: auto;
    }

    .card {
        overflow: visible;
    }

    .modal-content {
        overflow-x: auto;
    }

    /* 限制图片最大宽度 */
    img {
        max-width: 100%;
        height: auto;
    }
    
    .goods-item {
        padding: 10px;
    }

    .goods-item .d-flex {
        gap: 6px;
    }

    .goods-image.single-image,
    .goods-image.dual-image {
        width: 50px;
        height: 50px;
    }

    .goods-image-container.single-image {
        width: 50px;
        flex-shrink: 0;
    }

    .goods-image-container.dual-images {
        width: 110px; /* 50px * 2 + 10px gap */
        flex-shrink: 0;
    }

    .goods-info {
        flex: 1 1 0%;
        min-width: 0;
    }

    .goods-title {
        font-size: 0.85rem;
        line-height: 1.3;
        flex: 1 0 55%;
        min-width: 0;
    }

    .goods-name {
        margin-bottom: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .goods-name strong {
        font-weight: 700;
        font-size: 0.85rem;
    }

    /* 超小屏幕隐藏指示器徽章 */
    .goods-item .d-flex.align-items-center.gap-2 > .badge[style*="font-size: 10px"] {
        display: none !important;
    }

    .goods-item .btn-sm {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.65rem !important;
        white-space: nowrap;
    }

    .goods-item .status-badge {
        font-size: 0.55rem;
        padding: 1px 4px;
    }

    .goods-item .d-flex.align-items-center.gap-2 {
        gap: 4px !important;
    }

    .goods-price {
        font-size: 0.9rem;
    }

    .goods-meta {
        font-size: 0.65rem;
    }

    .goods-item .btn-primary,
    .goods-item .btn-outline-primary {
        padding: 0.15rem 0.4rem !important;
    }
    
    .goods-price {
        font-size: 0.9rem;
        word-break: break-word;
    }

    .goods-meta {
        font-size: 0.7rem;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        line-height: 1.3;
    }

    .goods-description {
        font-size: 0.7rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .card-header {
        padding: 0.375rem 0.5rem;
    }

    .card-header h5,
    .card-header h6 {
        font-size: 0.8rem;
    }

    .card-header .d-flex {
        flex-wrap: wrap;
        gap: 4px;
    }

    .card-header .badge {
        font-size: 0.6rem;
        white-space: nowrap;
    }

    .card-header .text-muted.small {
        font-size: 0.65rem;
    }

    .card-body {
        padding: 0.5rem;
    }
    
    .card-footer {
        padding: 0.375rem 0.5rem;
    }
    
    .modal-dialog {
        margin: 0.25rem;
    }
    
    .nav-pills .nav-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .nav-pills .nav-link .badge {
        font-size: 0.6rem;
    }
    
    /* 移动端商品头部信息进一步优化 */
    .mobile-goods-header-info {
        font-size: 0.7rem;
    }
    
    .mobile-goods-header-info .mx-1 {
        margin-left: 0.2rem !important;
        margin-right: 0.2rem !important;
    }
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 空状态提示 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 错误状态 */
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
}

.error-state i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* 新商品高亮 */
.goods-item.new-item {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.goods-item.new-item::before {
    content: 'NEW';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: #000;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

/* 滚动条美化 */
.goods-list::-webkit-scrollbar {
    width: 6px;
}

.goods-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.goods-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.goods-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 工具提示 */
.tooltip {
    font-size: 0.8rem;
}

/* 模态框内图片样式 */
.modal-body .goods-images img {
    max-width: 100%;
    margin: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 价格区间标识 */
.price-range-low {
    color: #28a745;
}

.price-range-medium {
    color: #ffc107;
}

.price-range-high {
    color: #dc3545;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* 成功提示 */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* 商品项的相对定位，用于NEW标签 */
.goods-item {
    position: relative;
}

/* 商品图片容器 */
.goods-image-container {
    position: relative;
    display: inline-block;
}

/* 单图模式 */
.goods-image-container.single-image {
    width: 80px;
}

/* 双图模式 */
.goods-image-container.dual-images {
    width: 170px; /* 80px * 2 + 10px gap */
    display: flex;
    gap: 10px;
}

/* 单张图片样式 */
.goods-image.single-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

/* 双张图片样式 */
.goods-image.dual-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

/* 图片数量标识 */
.image-count-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.7rem;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: bold;
}

/* 商品详情中的图片网格 */
.goods-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.goods-image-item img {
    width: 100%;
    height: auto;
    transition: transform 0.2s;
}

.goods-image-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 图片预览模态框 */
#imagePreviewModal .modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* 响应式图片网格 */
@media (max-width: 768px) {
    .goods-images-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .image-count-badge {
        font-size: 0.6rem;
        padding: 1px 3px;
    }
}

/* 价格排行榜样式 */
.price-ranking-name {
    transition: color 0.2s;
}

.table-hover tbody tr:hover .price-ranking-name {
    color: #007bff !important;
    text-decoration: none;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* 确认对话框样式 */
.modal-dialog-centered {
    align-items: center;
}

.alert-warning {
    border-left: 4px solid #ffc107;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

/* 分析模态框样式优化 */
.modal-xl {
    max-width: 95%;
}

.table-responsive {
    border-radius: 8px;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* 查看原链接按钮样式 */
.goods-item .btn-sm {
    padding: 2px 6px;
    font-size: 0.75rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.goods-item .btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
    background: white;
}

.goods-item .btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.goods-item .gap-2 {
    gap: 0.5rem;
}

/* 确保状态标签和按钮对齐 */
.goods-item .d-flex.align-items-center {
    align-items: center !important;
}

/* 按钮容器固定不压缩 */
.goods-item .d-flex > .d-flex.align-items-center {
    flex-shrink: 0;
    flex-basis: auto;
}

.goods-item .status-badge {
    flex-shrink: 0;
}

/* 行情信息样式（已简化到状态栏中） */

/* 涨跌幅颜色 */
.trend-up {
    color: #198754 !important;
    font-weight: 600;
}

.trend-down {
    color: #dc3545 !important;
    font-weight: 600;
}

.trend-neutral {
    color: #6c757d !important;
    font-weight: 500;
}

/* 行情数据特殊样式（精简版） */
#floorPrice {
    color: #495057;
}

/* 数据校验相关样式 */
.validation-status-success {
    color: #198754;
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.875rem;
}

.validation-status-error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.875rem;
}

.validation-status-warning {
    color: #fd7e14;
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.875rem;
}

.validation-status-info {
    color: #0dcaf0;
    background-color: #cff4fc;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.875rem;
}

/* 校验日志表格样式 */
.validation-log-table {
    font-size: 0.875rem;
}

.validation-log-table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.validation-log-table td {
    vertical-align: middle;
}

.validation-log-duration {
    font-family: 'Consolas', 'Monaco', monospace;
    color: #495057;
}

.validation-log-type {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.validation-log-stats {
    font-family: 'Consolas', 'Monaco', monospace;
    white-space: nowrap;
}

/* 响应式调整 */
@media (max-width: 768px) {

    .validation-log-table {
        font-size: 0.75rem;
    }

    .validation-log-table .d-none.d-md-table-cell {
        display: none !important;
    }
}

/* ========== PFP Number Link Styles ========== */
.pfp-number-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.pfp-number-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.pfp-number-link.text-danger {
    color: #dc3545 !important;
}

.pfp-number-link.text-danger:hover {
    color: #bb2d3b !important;
}

/* PFP Feature Modal Styles */
#pfpFeatureModal .list-group-item {
    border-left: 3px solid #0d6efd;
    transition: border-color 0.2s ease;
}

#pfpFeatureModal .list-group-item:hover {
    border-left-color: #0a58ca;
    background-color: #f8f9fa;
}

/* 设定集 Badge Styles */
.badge.bg-danger {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ========== Enhanced Mobile Optimizations ========== */
@media (max-width: 768px) {
    /* Product Title Optimization */
    .goods-title {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 4px;
        line-height: 1.4;
    }

    .goods-title strong {
        display: block;
        margin-bottom: 2px;
    }

    /* Product Info Layout */
    .goods-info {
        flex: 1;
        min-width: 0;
        padding-right: 8px;
    }

    /* Purchase Button Positioning */
    .goods-item .btn-primary {
        flex-shrink: 0;
        margin-left: auto;
        padding: 6px 12px;
        font-size: 13px;
        min-width: 60px;
    }

    /* Touch Target Size */
    .goods-item .btn-primary,
    .pfp-number-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .pfp-number-link {
        padding: 8px 4px;
        min-height: 32px;
    }

    /* Price and Premium Rate */
    .goods-price {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .premium-rate {
        font-size: 12px;
        margin-left: 6px;
    }

    /* Badge Sizing */
    .badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    /* Feature Modal Mobile Optimization */
    #pfpFeatureModal .modal-dialog {
        margin: 0.5rem;
    }

    #pfpFeatureModal .modal-body {
        padding: 1rem;
    }

    #pfpFeatureModal .list-group-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    /* Extra small screens */
    .goods-title {
        font-size: 13px;
    }

    .goods-price {
        font-size: 15px;
    }

    .goods-item .btn-primary {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 55px;
    }

    .premium-rate {
        font-size: 11px;
    }

    .pfp-number-link {
        font-size: 13px;
    }
}
