 *{margin: 0; padding: 0; box-sizing: border-box;}
    body{background: #f5f7fa; font-family: "Microsoft Yahei", sans-serif;}
    .container{max-width: 1400px; margin: 30px auto; padding: 0 0px;margin-top: 60px;}
    .page-title{font-size: 24px; margin-bottom: 25px; color: #009688;box-shadow: 0 2px 7px 0 rgb(0 0 0);}

    /* 商品网格 */
    .goods-grid{display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;box-shadow: 0 2px 7px 0 rgb(0 0 0);}
    .goods-card{background: #fff; border-radius: 4px; overflow: hidden; border: 1px solid #eee; transition: all 0.3s;}
    .goods-card:hover{transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); border-color: #c00;}
    .goods-cover{width: 100%; height: 180px; background: #f0f0f0; display: block;}
    .goods-body{padding: 18px;}
    .goods-name{font-size: 17px; font-weight: bold; color: #333; margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
    .goods-desc{font-size: 13px; color: #999; height: 40px; line-height: 20px; overflow: hidden; margin-bottom: 15px;}
    .goods-days{font-size: 12px; color: #ff5722; margin-bottom: 12px;}
    .goods-meta{display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px;}
    .goods-price{font-size: 22px; color: #ff5722; font-weight: bold;}
    .goods-stock{font-size: 12px; color: #999;}
    .buy-btn{width: 100%; height: 40px; line-height: 40px; text-align: center; background: #c00; color: #fff; border: none; border-radius: 4px; font-size: 14px; cursor: pointer;}
    .buy-btn:hover{opacity: 0.9;}
    .buy-btn.disabled{background: #ccc; cursor: not-allowed;}

    /* 空状态 */
    .empty-box{background: #fff; padding: 80px 20px; border-radius: 4px; text-align: center; color: #999; border: 1px solid #eee;}

    /* 支付弹窗样式兼容 */
    .pay-item.active { border-color: #c00 !important; background: #fff5f5; }

    /* ========== 手机端专属元素（PC端隐藏） ========== */
    #mobile-header { display: none; }
    .mobile-nav-mask { display: none; }
    .mobile-nav-drawer { display: none; }
    .mobile-footer-nav { display: none; }

    /* ========== 手机端完整适配 768px以下 ========== */
    @media (max-width: 768px) {
        /* 隐藏PC顶部和底部 */
        #header { display: none !important; }
        #footer { display: none !important; }

        /* 全局重置 */
        body { padding-top: 54px; padding-bottom: 60px; background: #f5f7fa; }
        .container { margin: 15px auto; padding: 0 10px; max-width: 100%; }
        .page-title { font-size: 18px; margin-bottom: 15px; }

        /* ========== 顶部导航栏 ========== */
        #mobile-header {
            display: flex;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 54px;
            background: #c00;
            align-items: center;
            padding: 0 12px;
            gap: 10px;
            z-index: 999;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        .mobile-logo { height: 36px; flex-shrink: 0; }
        .mobile-logo img { height: 100%; display: block; }
        .mobile-search {
            flex: 1;
            height: 36px;
            background: #fff;
            border-radius: 18px;
            display: flex;
            align-items: center;
            padding: 0 15px;
        }
        .mobile-search input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 14px;
            background: transparent;
        }
        .mobile-menu-btn {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 22px;
            flex-shrink: 0;
            cursor: pointer;
        }

        /* ========== 侧边抽屉导航 ========== */
        .mobile-nav-mask {
            display: block;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }
        .mobile-nav-mask.show { opacity: 1; visibility: visible; }
        .mobile-nav-drawer {
            display: block;
            position: fixed;
            top: 0;
            right: 0;
            width: 75%;
            max-width: 300px;
            height: 100%;
            background: #fff;
            z-index: 1001;
            transform: translateX(100%);
            transition: transform 0.3s;
            overflow-y: auto;
        }
        .mobile-nav-drawer.show { transform: translateX(0); }
        .mobile-nav-user {
            padding: 25px 20px;
            background: #c00;
            color: #fff;
        }
        .mobile-nav-user strong { font-size: 16px; display: block; margin-bottom: 4px; }
        .mobile-nav-user span { font-size: 12px; opacity: 0.9; }
        .mobile-nav-user a { color: #fff; text-decoration: underline; }
        .mobile-nav-list { list-style: none; margin: 0; padding: 10px 0; }
        .mobile-nav-list li { border-bottom: 1px solid #f5f5f5; }
        .mobile-nav-list li a {
            display: block;
            padding: 14px 20px;
            color: #333;
            text-decoration: none;
            font-size: 15px;
        }
        .mobile-nav-list li a:active { background: #f5f5f5; color: #c00; }
        .mobile-nav-sub { background: #fafafa; }
        .mobile-nav-sub li a { padding-left: 35px; font-size: 14px; color: #666; }

        /* ========== 商品卡片适配 ========== */
        .goods-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
        .goods-cover { height: 120px; }
        .goods-body { padding: 12px; }
        .goods-name { font-size: 14px; margin-bottom: 6px; }
        .goods-desc { font-size: 12px; height: 36px; line-height: 18px; margin-bottom: 8px; }
        .goods-days { font-size: 11px; margin-bottom: 8px; }
        .goods-price { font-size: 18px; }
        .goods-stock { font-size: 11px; }
        .buy-btn { height: 42px; line-height: 42px; font-size: 14px; border-radius: 6px; }

        /* ========== 底部Tab导航 ========== */
        .mobile-footer-nav {
            display: flex;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 56px;
            background: #fff;
            border-top: 1px solid #eee;
            z-index: 999;
        }
        .mobile-footer-nav a {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #999;
            text-decoration: none;
            font-size: 11px;
            gap: 2px;
        }
        .mobile-footer-nav a i { font-size: 20px; font-style: normal; }
        .mobile-footer-nav a.active { color: #c00; }
    }