@charset "utf-8";
/**
 * 手机端首页样式 - 橙色主题
 * 适配UI设计稿的色彩搭配
 */

/* ========== 手机端基础变量覆盖 ========== */
@media only screen and (max-width: 640px) {
    :root {
        --color-main: #F5A623;
        --color-main-light: #FFF5E6;
        --color-main-hover: #E69516;
        --color-price: #E85D04;
        --color-secondary: #FFD9A8;
        --body-bg-color: #F5F5F5;
        --border-radius: 0.8rem;
        --border-radius-lg: 1.2rem;
    }

    body {
        background-color: #F5F5F5;
    }

    /* ========== 顶部搜索框样式 ========== */
    .header-top {
        background: rgba(245, 230, 215, 1);
        border-bottom: none;
        padding: 0.8rem 1.2rem;
    }

    .header-top .top-nav-right,
    .header-top .top-nav-right .top-nav-items,
    .header-top .top-nav-right .menu-hd {
        background: rgba(245, 230, 215, 1) !important;
    }

    /* 手机端隐藏PC端搜索框区域 */
    .nav-search.white,
    .nav-search.white.am-hide-sm-only {
        display: none !important;
    }

    /* ========== 手机端椭圆形搜索框样式 ========== */
    /* 顶部导航栏布局 */
    .shop-navigation {
        background: rgba(245, 230, 215, 1) !important;
    }

    .shop-navigation .am-container {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.8rem 1.2rem;
        background: rgba(245, 230, 215, 1);
    }

    .shop-navigation .am-topbar-toggle.am-show-sm-only {
        display: flex !important;
        align-items: center;
        justify-content: center;
        order: 2;
        margin: 0;
        padding: 0;
        width: 3.6rem;
        height: 3.6rem;
        flex-shrink: 0;
    }

    .shop-navigation .am-topbar-toggle .icon-more-phone {
        font-size: 2rem;
        color: #333333;
    }

    .shop-navigation .navigation-search {
        flex: 1;
        order: 1;
        margin: 0 auto;
        padding: 0;
        max-width: 90%;
    }

    .am-input-group.am-input-group-sm {
        background: #F5F5F5;
        border-radius: 50rem !important;
        border: none !important;
        overflow: hidden;
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: center;
        height: 3.6rem;
        padding: 0 1.2rem;
        width: 100%;
        margin: 0 auto;
    }

    .am-input-group.am-input-group-sm .am-form-field {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        height: 3.6rem;
        font-size: 1.4rem;
        color: #333333;
        padding: 0 0.5rem;
        flex: 1;
        border-radius: 0 !important;
        order: 1;
    }

    .am-input-group.am-input-group-sm .am-form-field::placeholder {
        color: #BBBBBB;
    }

    .am-input-group.am-input-group-sm .am-input-group-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0 !important;
        order: 2;
        margin-left: 1rem;
    }

    .am-input-group.am-input-group-sm .am-input-group-btn .am-btn {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0;
        width: 2.4rem;
        height: 2.4rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0 !important;
        margin-right: 0.8rem;
    }

    .am-input-group.am-input-group-sm .am-input-group-btn .am-btn .am-icon-search {
        color: #999999;
        font-size: 1.6rem;
    }

    .am-input-group.am-input-group-sm .am-input-group-btn .am-btn:hover,
    .am-input-group.am-input-group-sm .am-input-group-btn .am-btn:focus,
    .am-input-group.am-input-group-sm .am-input-group-btn .am-btn:active {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* ========== 轮播Banner样式 ========== */
    .banner {
        margin: 0.8rem 1.2rem;
        margin-right: 1.2rem;
        border-radius: 1.2rem;
        overflow: hidden;
        box-sizing: border-box;
        max-width: calc(100% - 2.4rem);
        background: rgba(245, 230, 215, 1);
    }

    /* 轮播图父容器背景 */
    .home-banner,
    .banner-container,
    .am-slider-default {
        background: rgba(245, 230, 215, 1) !important;
    }

    .banner .am-slider {
        border-radius: 1.2rem;
        background: rgba(245, 230, 215, 1);
    }

    .banner .am-slider .am-slides li {
        border-radius: 1.2rem;
        overflow: hidden;
    }

    .banner .am-slider .am-slides li img {
        border-radius: 1.2rem;
        height: 16rem;
        object-fit: cover;
    }

    /* ========== 手机导航图标样式 ========== */
    .home-nav-container {
        padding: 0;
    }

    .small-nav {
        background: #FFFFFF;
        padding: 1.5rem 0.5rem;
        margin: 0.8rem 1.2rem;
        border-radius: 1.2rem;
    }

    .small-nav .am-u-sm-3 {
        width: 20%;
        text-align: center;
        margin-top: 0;
        padding: 0.8rem 0;
    }

    .small-nav .nav-icon {
        width: 5rem;
        height: 5rem;
        max-width: 5rem;
        max-height: 5rem;
        padding: 0 !important;
        margin: 0 auto;
        border-radius: 50% !important;
        background: linear-gradient(135deg, #FFF5E6 0%, #FFE8CC 100%) !important;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0.2rem 0.8rem rgba(245, 166, 35, 0.15);
        overflow: hidden;
    }

    .small-nav .nav-icon img {
        width: 2.8rem;
        height: 2.8rem;
        max-width: 2.8rem;
        max-height: 2.8rem;
        object-fit: contain;
    }

    .small-nav .nav-icon.item-exposed {
        background: linear-gradient(135deg, #FFF5E6 0%, #FFE8CC 100%) !important;
        padding: 0 !important;
        box-shadow: 0 0.2rem 0.8rem rgba(245, 166, 35, 0.15);
    }

    .small-nav .mini-nav-title {
        margin-top: 0.8rem;
        font-size: 1.2rem;
        color: #333333;
        font-weight: 400;
    }

    .small-nav a {
        text-decoration: none !important;
    }

    /* ========== 手机端首页分类导航样式 ========== */
    .mobile-category-nav {
        padding: 1.5rem 1rem;
        background: #FFFFFF;
    }

    .mobile-category-nav ul {
        display: flex;
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-category-nav ul li {
        width: 20%;
        text-align: center;
        padding: 0.8rem 0.3rem;
    }

    .mobile-category-nav ul li a {
        display: block;
        text-decoration: none;
    }

    .mobile-category-nav .category-icon-wrap {
        width: 5.5rem;
        height: 5.5rem;
        margin: 0 auto;
        border-radius: 1.2rem;
        overflow: hidden;
        background: #F5F5F5;
    }

    .mobile-category-nav .category-icon-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-category-nav ul li p {
        margin-top: 0.8rem;
        font-size: 1.2rem;
        color: #333333;
        font-weight: 400;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* ========== 限时热卖标题样式 ========== */
    .items-nav-title,
    .home-floor .items-nav-title {
        padding: 1.5rem 1.2rem 1rem;
        background: #FFFFFF;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-radius: 1.2rem 1.2rem 0 0;
    }

    .items-nav-title .floor-title,
    .home-floor .floor-title {
        font-size: 1.6rem;
        font-weight: 600;
        color: #333333;
        position: relative;
        padding-left: 0;
        border: none;
    }

    .items-nav-title .floor-title::before,
    .am-title-left-border::before {
        display: none !important;
    }

    .items-nav-title .floor-desc,
    .home-floor .floor-desc {
        display: none;
    }

    .items-nav-title .today-brands,
    .home-floor .today-brands {
        display: none;
    }

    .items-nav-title .more,
    .home-floor .more {
        position: static;
    }

    .items-nav-title .more a,
    .home-floor .more a {
        font-size: 1.2rem;
        color: #F5A623;
        text-decoration: none;
    }

    .items-nav-title .more a::after,
    .home-floor .more a::after {
        content: " >";
        color: #F5A623;
    }

    /* ========== 商品列表样式 ========== */
    .home-floor {
        background: #F5F5F5;
        padding: 0 1.2rem;
    }

    /* 每个楼层区块 */
    .home-floor > div[id^="floor"] {
        margin-bottom: 1rem;
        background: #FFFFFF;
        border-radius: 1.2rem;
        overflow: hidden;
    }

    /* 楼层内的容器统一去除内边距 */
    .home-floor > div[id^="floor"] > .am-container {
        padding: 0;
    }

    .home-floor .floor {
        background: #FFFFFF;
        border-radius: 0 0 1.2rem 1.2rem;
        overflow: hidden;
        padding-bottom: 0.5rem;
        margin: 0;
    }

    .home-floor .goods-list {
        padding: 0 0.6rem;
        width: 100% !important;
    }

    /* 商品网格容器 */
    .module-goods-grid-container {
        background: transparent;
    }

    .module-goods-grid-container ul {
        padding: 0;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
    }

    .module-goods-grid-container ul li {
        padding: 0.6rem;
        box-sizing: border-box;
    }

    /* 商品卡片样式 */
    .module-goods-grid-container .item {
        background: #FFFFFF;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.05);
        padding-bottom: 1rem !important;
        height: 100%;
        position: relative;
    }

    .module-goods-grid-container .item .goods-images {
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 1rem 1rem 0 0 !important;
    }

    .module-goods-grid-container .item .goods-title {
        padding: 0.8rem 1rem 0.5rem;
        font-size: 1.3rem;
        line-height: 1.8rem;
        color: #333333;
        min-height: 4.4rem;
        overflow: hidden;
    }

    .module-goods-grid-container .item .goods-title a {
        color: #333333;
        text-decoration: none;
    }

    /* 价格样式 */
    .module-goods-grid-container .item .price-content {
        padding: 0 1rem;
        position: relative;
    }

    .module-goods-grid-container .item .price {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
    }

    .module-goods-grid-container .item .price strong {
        font-size: 1.6rem;
        color: #E85D04 !important;
        font-weight: 600;
    }

    .module-goods-grid-container .item .original-price {
        font-size: 1.1rem;
        color: #BBBBBB;
        text-decoration: line-through;
        margin-left: 0.5rem;
    }

    /* 商品卡片添加按钮 */
    .module-goods-grid-container .item .price-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .module-goods-grid-container .item .price-content::after {
        content: "+";
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.4rem;
        height: 2.4rem;
        background: #F5A623;
        color: #FFFFFF;
        border-radius: 50%;
        font-size: 1.8rem;
        font-weight: 300;
        line-height: 1;
    }

    /* ========== 底部导航样式 ========== */
    .mobile-navigation {
        display: flex !important;
        position: fixed;
        bottom:0;
        left: 0;
        right: 0;
        background: #FFFFFF;
        box-shadow: 0 -0.2rem 1rem rgba(0, 0, 0, 0.05);
        z-index: 1020;
        padding: 0.8rem 0;
        border-top: none;
        list-style: none;
        margin: 0;
    }

    .mobile-navigation li {
        width: 25%;
        padding: 0;
        background: #FFFFFF;
        border-top: none;
        text-align: center;
        list-style: none;
    }

    .mobile-navigation li a {
        text-decoration: none;
        color: #666666;
        display: block;
        text-align: center;
    }

    .mobile-navigation li a > i.iconfont {
        display: block;
        font-size: 2.2rem;
        margin-bottom: 0.4rem;
        line-height: 1;
    }

    .mobile-navigation li a > p {
        font-size: 1.1rem;
        margin: 0;
        line-height: 1.4;
    }

    /* 底部导航选中状态 */
    .mobile-navigation li.active a {
        color: #F5A623;
    }

    .mobile-navigation li.active a > i.iconfont {
        color: #F5A623;
    }

    .mobile-navigation li.active a > p {
        color: #F5A623;
        font-weight: 500;
    }

    /* ========== 页面底部间距 ========== */
    .am-footer {
        padding-bottom: 8rem;
        margin-bottom: 0;
        margin-top: 0;
    }

    /* 确保页面内容不被底部导航遮挡 */
    body {
        padding-bottom: 7rem;
    }

    /* ========== 按钮样式 ========== */
    .am-btn-primary {
        background-color: #F5A623 !important;
        border-color: #F5A623 !important;
    }

    .am-btn-primary:hover,
    .am-btn-primary:focus,
    .am-btn-primary:active {
        background-color: #E69516 !important;
        border-color: #E69516 !important;
    }

    /* ========== 价格颜色统一 ========== */
    .price,
    .price strong,
    .line-price {
        color: #E85D04 !important;
    }

    /* ========== 楼层聚合区域隐藏 ========== */
    .floor .aggregation-container {
        display: none !important;
    }

    .floor .goods-list {
        width: 100% !important;
        padding: 0 0.6rem !important;
        float: none !important;
    }

    /* ========== 隐藏PC端元素 ========== */
    .goods-category-s,
    .goods-category-title,
    .header-nav,
    .nav-table {
        display: none !important;
    }

    /* ========== 隐藏手机端顶部更多按钮 ========== */
    .am-topbar-toggle.am-show-sm-only {
        display: none !important;
    }

    button.am-topbar-btn.am-topbar-toggle.am-btn.am-btn-sm.am-btn-default.am-show-sm-only.switch-submit {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
}
