/* 移动端适配样式 */
@media screen and (max-width: 768px) {
    /* 基础设置 */
    html, body, #app {
        min-width: auto !important;
        width: 100% !important;
        overflow-x: hidden !important;
        background: #F6F6F6 !important;
    }

    /* 容器适配 */
    .container {
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    .dog-max-width {
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    .content-box {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 头部导航适配 */
    .head-div {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }

    .container-head {
        padding: 10px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .dog-logo {
        width: 80px !important;
        height: auto !important;
    }

    .nav-menu {
        display: none !important;
    }

    .right {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .dog-hover-btn {
        padding: 8px 16px !important;
        font-size: 14px !important;
        height: 36px !important;
    }

    /* 移动端汉堡菜单 */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 25px !important;
        height: 20px !important;
        cursor: pointer !important;
        margin-left: 10px !important;
    }

    .mobile-menu-toggle span {
        width: 100% !important;
        height: 3px !important;
        background-color: #000 !important;
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) !important;
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px) !important;
    }

    /* 移动端菜单展开 */
    .mobile-menu {
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        z-index: 999 !important;
        display: none !important;
        flex-direction: column !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }

    .mobile-menu.active {
        display: flex !important;
    }

    .mobile-menu a {
        padding: 15px 0 !important;
        border-bottom: 1px solid #eee !important;
        text-decoration: none !important;
        color: #000 !important;
        font-size: 16px !important;
    }

    .mobile-menu a:last-child {
        border-bottom: none !important;
    }

    /* 主要内容区域 */
    .home-page {
        margin-top: 80px !important;
        padding: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 轮播图适配 */
    .section1 {
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .l-box {
        width: 100% !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .r-box {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .swiper {
        height: 200px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .swiper-slide {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .swiper-slide img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
    }

    /* 数据统计适配 */
    .top-row {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .item-box {
        width: 100% !important;
        padding: 15px !important;
        margin-bottom: 10px !important;
        box-sizing: border-box !important;
    }

    .item-box .num {
        font-size: 18px !important;
    }

    .item-box .text {
        font-size: 12px !important;
    }

    /* 限时秒杀适配 */
    .seckill-box {
        margin-top: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .img-box {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .goods-box {
        width: 100% !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .goods-box img {
        width: 100% !important;
        height: 150px !important;
        object-fit: cover !important;
    }

    /* 推荐商品适配 */
    .recommend-goods {
        margin-top: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .recommend-goods-l {
        width: 100% !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .recommend-goods-r {
        width: 100% !important;
        margin-top: 20px !important;
        box-sizing: border-box !important;
    }

    .goods-item {
        width: 100% !important;
        margin-bottom: 15px !important;
        box-sizing: border-box !important;
    }

    .goods-item img {
        width: 100% !important;
        height: 120px !important;
        object-fit: cover !important;
    }

    /* 历史发展适配 */
    .history-box {
        margin-top: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .img-row {
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .section3-img-item {
        width: 100% !important;
        margin-bottom: 15px !important;
        box-sizing: border-box !important;
    }

    .img-box {
        width: 100% !important;
        height: 150px !important;
        box-sizing: border-box !important;
    }

    .img-box img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .text-box {
        padding: 15px !important;
        box-sizing: border-box !important;
    }

    .text-box .tit {
        font-size: 16px !important;
    }

    .text-box .desc {
        font-size: 12px !important;
    }

    /* 浮动图标适配 */
    .icon-box {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 999 !important;
    }

    .icon-box .item {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 10px !important;
    }

    .icon-box .text {
        font-size: 10px !important;
    }

    /* 按钮适配 */
    .btn-bg-red {
        width: 100% !important;
        height: 40px !important;
        font-size: 14px !important;
    }

    /* 文字适配 */
    .font18 {
        font-size: 16px !important;
    }

    .font20 {
        font-size: 18px !important;
    }

    .font24 {
        font-size: 20px !important;
    }

    /* 间距适配 */
    .mbpx8 {
        margin-bottom: 8px !important;
    }

    .mbpx10 {
        margin-bottom: 10px !important;
    }

    .mbpx11 {
        margin-bottom: 11px !important;
    }

    .mbpx12 {
        margin-bottom: 12px !important;
    }

    .mtpx15 {
        margin-top: 15px !important;
    }

    .mrpx10 {
        margin-right: 10px !important;
    }

    .ptpx20 {
        padding-top: 20px !important;
    }

    /* 弹窗适配 */
    .dog-pop {
        padding: 10px !important;
    }

    .dog-pop-content {
        width: 95% !important;
        max-width: 400px !important;
        padding: 20px !important;
    }

    /* 表格适配 */
    table {
        font-size: 12px !important;
    }

    th, td {
        padding: 8px 4px !important;
    }

    /* 表单适配 */
    input, textarea, select {
        font-size: 16px !important;
        padding: 10px !important;
    }

    /* 链接适配 */
    a {
        font-size: 14px !important;
        padding: 8px 0 !important;
        display: inline-block !important;
    }

    /* 图片适配 */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* 通用宽度控制 */
    .wr100 {
        width: 100% !important;
    }

    .f-c-b, .f-c-c, .f-s-c, .f-e-c {
        width: 100% !important;
    }
}

/* 桌面端样式 */
@media screen and (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .mobile-menu {
        display: none !important;
    }
}

/* 超小屏幕适配 */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 5px !important;
    }

    .dog-max-width {
        padding: 0 5px !important;
    }

    .home-page {
        padding: 5px !important;
    }

    .item-box {
        padding: 10px !important;
    }

    .swiper {
        height: 150px !important;
    }

    .swiper-slide img {
        height: 150px !important;
    }

    .goods-box img {
        height: 120px !important;
    }

    .img-box {
        height: 120px !important;
    }
} 