/**
 * 移动端专用样式
 */

/* 小屏幕 (手机) */
@media (max-width: 575px) {
    /* 容器内边距 */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 标题字号调整 */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* 卡片标题 */
    .card-title {
        font-size: 1rem;
    }

    /* 按钮 */
    .btn-group .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.5rem;
    }

    /* 徽章 */
    .badge {
        font-size: 0.75rem;
    }

    /* 轮播图高度 */
    .carousel-item img {
        max-height: 250px;
    }

    /* 导航栏 */
    .navbar-brand {
        font-size: 1.1rem;
    }

    /* 筛选表单 */
    .form-label {
        font-size: 0.875rem;
    }

    .form-select {
        font-size: 0.875rem;
    }

    /* 分页简化显示 */
    .pagination {
        font-size: 0.875rem;
    }

    .pagination .page-item:not(.active):not(:first-child):not(:last-child) {
        display: none;
    }

    /* 表格字体 */
    .table {
        font-size: 0.875rem;
    }

    /* 底部操作栏高度调整 */
    .fixed-bottom {
        padding: 0.75rem !important;
    }
}

/* 中等屏幕 (平板竖屏) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
    }

    .carousel-item img {
        max-height: 300px;
    }
}

/* 大屏幕 (平板横屏) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    .carousel-item img {
        max-height: 350px;
    }
}

/* 桌面端优化 */
@media (min-width: 992px) {
    /* 悬停效果增强 */
    .auction-card:hover,
    .item-card:hover {
        transform: translateY(-6px);
    }

    /* 图片网格间距 */
    .row.g-2 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}

/* 超大屏幕 */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* 触摸设备优化 */
@media (hover: none) {
    /* 移除悬停效果，改为点击效果 */
    .auction-card:active,
    .item-card:active {
        transform: scale(0.98);
    }

    /* 增加点击区域 */
    .btn,
    .nav-link,
    .page-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* 横屏模式优化 */
@media (max-width: 767px) and (orientation: landscape) {
    .carousel-item img {
        max-height: 200px;
    }

    .navbar {
        padding: 0.25rem 0;
    }

    .main-content {
        padding-top: 1rem;
    }
}

/* 高 DPI 屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* 提升图片质量 */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* 暗色模式支持（可选） */
@media (prefers-color-scheme: dark) {
    /* 如果需要支持暗色模式，可以在此添加样式 */
}
