/* 项目商城中心风格 - 仿 http://135.5000.xiaomiou.com/ */
:root {
    --mc-blue: #007aff;
    --mc-orange: #ff5e00;
    --mc-bg: #f7f9fc;
    --mc-text: #1d1d1f;
    --mc-sub: #86868b;
    --mc-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html.mall-center-page,
html.mall-center-page body {
    height: 100%;
    overflow: hidden;
}

.mall-center-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.06);
    position: relative;
}

.mall-center-app .top-search-header {
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.mall-center-app .search-box {
    background: #f2f4f7;
    border-radius: 22px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    height: 38px;
    transition: all 0.3s ease;
}

.mall-center-app .search-box:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.12);
    border: 1px solid var(--mc-blue);
}

.mall-center-app .search-input {
    border: none;
    background: transparent;
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: #333;
    outline: none;
    margin-left: 8px;
}

.mall-center-app .search-btn {
    border: none;
    background: none;
    color: var(--mc-blue);
    font-size: 14px;
    font-weight: 600;
    padding: 0 6px;
    white-space: nowrap;
    cursor: pointer;
}

.mall-center-app .home-carousel {
    padding: 10px 12px 0;
    flex-shrink: 0;
    display: block;
}

.mall-center-app .carousel-viewport {
    overflow: hidden;
    border-radius: 12px;
    background: #eef2f7;
    min-height: 160px;
}

.mall-center-app .carousel-slide-placeholder {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8edf5 0%, #f4f6fa 50%, #e3eaf3 100%);
    border: 1px dashed rgba(0, 0, 0, 0.08);
}

.mall-center-app .carousel-placeholder-text {
    font-size: 13px;
    color: #9ca3af;
    letter-spacing: 0.05em;
}

.mall-center-app .home-carousel.is-empty .carousel-viewport {
    background: transparent;
}

.mall-center-app .carousel-track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}

.mall-center-app .carousel-slide {
    flex: 0 0 100%;
    width: 100%;
}

.mall-center-app .carousel-slide img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    vertical-align: top;
}

.mall-center-app .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 2px;
}

.mall-center-app .carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.mall-center-app .carousel-dot.active {
    width: 16px;
    border-radius: 4px;
    background: var(--mc-blue, #2563eb);
}

.mall-center-app .notice-bar {
    margin-top: 6px;
    background-color: #fff8f2;
    color: var(--mc-orange);
    padding: 0 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ffeedd;
    height: 36px;
    font-weight: 500;
    flex-shrink: 0;
}

.mall-center-app .notice-badge {
    font-size: 11px;
    padding: 3px 5px;
    background: #ffc107;
    color: #1d1d1f;
    border-radius: 4px;
    margin-right: 8px;
    flex-shrink: 0;
}

.mall-center-app .notice-marquee {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.mall-center-app .notice-marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: mc-marquee 18s linear infinite;
}

@keyframes mc-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.mall-center-app .main-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: var(--mc-bg);
    min-height: 0;
}

.mall-center-app .sidebar {
    width: 85px;
    background: #fff;
    overflow-y: auto;
    flex-shrink: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    -webkit-overflow-scrolling: touch;
}

.mall-center-app .nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    width: 100%;
    color: var(--mc-sub);
    text-decoration: none;
    font-size: 13px;
    position: relative;
    transition: all 0.25s ease;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0 6px;
    text-align: center;
    line-height: 1.2;
}

.mall-center-app .nav-item.active {
    background: #f0f8ff;
    color: var(--mc-blue);
    font-weight: 700;
}

.mall-center-app .nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    background-color: var(--mc-blue);
    border-radius: 0 4px 4px 0;
}

.mall-center-app .main-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    padding-bottom: 12px;
    background: var(--mc-bg);
    -webkit-overflow-scrolling: touch;
}

.mall-center-app .product-item {
    display: flex;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: var(--mc-shadow);
    align-items: flex-start;
    transition: all 0.2s ease;
}

.mall-center-app .product-item:active {
    transform: scale(0.985);
    background: #fafafa;
}

.mall-center-app .p-img {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
    background: #f8f8f8;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    overflow: hidden;
}

.mall-center-app .p-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mall-center-app .p-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 68px;
    min-width: 0;
}

.mall-center-app .p-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--mc-text);
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

.mall-center-app .p-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.mall-center-app .p-price {
    color: var(--mc-orange);
    font-weight: 800;
    font-size: 16px;
}

.mall-center-app .p-price::before {
    content: '¥';
    font-size: 12px;
    margin-right: 1px;
}

.mall-center-app .p-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mall-center-app .btn-buy-sm {
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    color: var(--mc-blue);
    border: 1px solid var(--mc-blue);
    text-decoration: none;
    cursor: pointer;
    line-height: 1.4;
}

.mall-center-app .add-cart-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--mc-blue);
    transition: all 0.25s ease;
    font-size: 14px;
    line-height: 1;
}

.mall-center-app .add-cart-btn::before {
    content: '+';
    font-weight: 700;
    font-size: 16px;
}

.mall-center-app .prod-check:checked + .add-cart-btn::before {
    content: '✓';
    font-size: 13px;
}

.mall-center-app .prod-check {
    display: none;
}

.mall-center-app .prod-check:checked + .add-cart-btn {
    background: var(--mc-blue);
    border-color: var(--mc-blue);
    color: #fff;
    box-shadow: 0 3px 8px rgba(0, 122, 255, 0.25);
}

.mall-center-app .tech-navbar {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 10%);
    max-width: 540px;
    height: 50px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    z-index: 990;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.mall-center-app .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 8px;
    background: #e8eef5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    object-fit: cover;
}

.mall-center-app .user-login-link {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.mall-center-app .settle-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 65px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    z-index: 1000;
}

.mall-center-app .settle-price {
    color: var(--mc-orange);
    font-size: 20px;
    font-weight: 800;
}

.mall-center-app .settle-total {
    font-size: 13px;
    color: var(--mc-text);
}

.mall-center-app .settle-btns {
    display: flex;
    align-items: center;
}

.mall-center-app .btn-clear-cart {
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 13px;
    margin-right: 8px;
    cursor: pointer;
}

.mall-center-app .btn-submit-cart {
    background: var(--mc-text);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0 24px;
    height: 38px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.mall-center-app .btn-submit-cart:disabled {
    background: #eee;
    color: #aaa;
    cursor: not-allowed;
}

.mall-center-app .empty-tip {
    text-align: center;
    padding: 40px 16px;
    color: var(--mc-sub);
    font-size: 14px;
}

@media (min-width: 600px) {
    .mall-center-app {
        border-left: 1px solid #eee;
        border-right: 1px solid #eee;
    }
}
