/* MC003 - 竖屏套餐展示页面样式 */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* 1080x1920 分辨率优化 */
@media (max-width: 1200px) {
    .mc003-header {
        padding: 20px 24px;
        margin: 12px;
    }

    .mc003-header-title {
        font-size: 18px;
    }

    .mc003-header-price {
        font-size: 36px;
    }

    .mc003-checkout-btn {
        padding: 14px 28px;
        font-size: 18px;
    }

    .mc003-sidebar {
        width: 150px;
        padding: 16px 12px;
    }

    .mc003-category-item {
        padding: 18px 12px;
        margin-bottom: 4px;
    }

    .mc003-category-name {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .mc003-category-count {
        font-size: 13px;
    }

    .mc003-content {
        padding: 24px;
    }

    .mc003-section-title {
        font-size: 20px;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .mc003-combos-list {
        gap: 18px;
    }

    .mc003-combo-item {
        padding: 18px;
        gap: 18px;
    }

    .mc003-combo-image {
        height: 225px;
    }

    .mc003-combo-name {
        font-size: 16px;
    }

    .mc003-combo-price {
        font-size: 18px;
    }

    .mc003-combo-desc {
        font-size: 14px;
    }

    .mc003-combo-qty-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .mc003-combo-qty-value {
        width: 32px;
        font-size: 14px;
    }
}

html {
    background: linear-gradient(180deg, #ffa544 0%, #ffa544 66%, #D3D3D3 66%, #D3D3D3 100%);
    background-attachment: fixed;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: transparent;
    display: flex;
    flex-direction: column;
}

/* 顶部购物车信息条 */
.mc003-header {
    background: linear-gradient(135deg, #003D7A 0%, #004A94 100%);
    padding: 25px 32px;
    color: white;
    flex-shrink: 0;
    margin: 0 auto;
    height: 8%;
    margin-top: 14%;
    width: 88% !important;
    border-radius: 8px;
}

.mc003-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mc003-header-left {
    flex: 1;
    font-size: 40px;
}

.mc003-header-title {
    font-size: 40px;
    margin-bottom: 4px;
    opacity: 0.9;
}

.mc003-header-price {
    font-size: 32px;
    font-weight: bold;
}

.mc003-checkout-btn {
    background: white;
    color: #003D7A;
    border: none;
    padding: 12px 32px;
    border-radius: 75px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    width: 45%;
    font-size: 40px;
    height: 100px;
    
    transition: all 0.3s ease;
}

.mc003-checkout-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

/* 主容器 */
.mc003-container {
    display: flex;
    height: 72% !important;
    overflow-y: auto;
    width: 88%;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 左侧分类菜单 */
.mc003-sidebar {
    width: 25%;
    background: #eeeeee;
    padding: 12px 8px;
    overflow-y: auto;
    flex-shrink: 0;
    padding-top: 10%;
}

.mc003-category-item {
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 2px;
}

.mc003-category-item:hover {
    background: #C0C0C0;
}

.mc003-category-item.active {
        background: rgb(246 230 158);
    border-radius: 0 4px 4px 0;
}

.mc003-category-name {
    font-size: 13px;
    font-weight: bold;
    color: #666;
    margin-bottom: 3px;
}

.mc003-category-item.active .mc003-category-name {
    font-size: 40px;
    color: #FFA500;
}

.mc003-category-item:not(.active) .mc003-category-name {
    color: #666;
    font-size: 40px;
}

.mc003-category-count {
    font-size: 40px;
    color: #999;
}

.mc003-category-item.active .mc003-category-count {
    color: #FFA500;
}

/* 右侧内容区 */
.mc003-content {
    flex: 1;
    background: white;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mc003-section-title {
    font-size: 40px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

/* 套餐列表 */
.mc003-combos-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 14px;
}

.mc003-combo-item {
    background: white;
    border-radius: 6px;
    padding: 14px;
    display: flex;
    gap: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mc003-combo-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mc003-combo-image {
    flex: 1;
    border-radius: 4px;
    flex-shrink: 0;
    display: inline-block;
}

.mc003-combo-image img {
    /* 按图片原始比例自适应放大/缩小，不裁剪 */
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* 1080x1920 分辨率下的套餐项优化 */
@media (max-width: 1200px) {
    .mc003-combo-image {
        /* 不再在媒体查询中限制固定宽度，保持自适应 */
    }

    .mc003-combo-item {
        padding: 18px;
        gap: 18px;
    }

    .mc003-combo-name {
        font-size: 16px;
    }

    .mc003-combo-price {
        font-size: 18px;
    }

    .mc003-combo-desc {
        font-size: 14px;
    }

    .mc003-combo-qty-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .mc003-combo-qty-value {
        width: 32px;
        font-size: 14px;
    }
}

.mc003-combo-info {
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.mc003-combo-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.mc003-combo-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    flex: 1;
    display: none;
}

.mc003-combo-price {
    font-size: 16px;
    font-weight: bold;
    color: #E4002B;
    white-space: nowrap;
    display: none;
}

.mc003-combo-desc {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    line-height: 1.4;
    display: none;
}

.mc003-combo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.mc003-combo-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    /* 尺寸整体放大三倍 */
    padding: 12px;
}

.mc003-combo-qty-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    background: white;
    border-radius: 50%;

        border: 1px solid #ddd;
    cursor: pointer;
    font-size: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mc003-combo-qty-btn:hover {
    background: #e0e0e0;
}

.mc003-combo-qty-btn.plus {
    background: #ffa544;
    border-radius: 50%;
    color: black;
}

.mc003-combo-qty-btn.plus:hover {
    background: #c70024;
}

.mc003-combo-qty-value {
    width: 72px;
    text-align: center;
    font-weight: bold;
    font-size: 36px;
}

/* 加载状态 */
.mc003-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #999;
}

.mc003-loading i {
    font-size: 32px;
    margin-bottom: 12px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 弹窗样式 */
.mc003-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    /* 从顶部弹出：内容贴近顶部 */
    align-items: flex-start;
    justify-content: center;
}

.mc003-modal.hidden {
    display: none;
}

.mc003-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.mc003-modal-content {
    /* 弹窗宽度 80%，顶部弹出且居中 */
    width: 80%;
    max-width: 80%;
    margin: 40px auto 0;
    background: white;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    animation: mc003-modal-slide-down 0.25s ease-out;
}

.mc003-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.mc003-modal-header h2 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.mc003-modal-close {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 40px;
    transition: all 0.3s ease;
}

.mc003-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.mc003-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.mc003-modal-body img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 60vh;
    object-fit: contain;
}

/* 1080x1920 分辨率下的弹窗优化 */
@media (max-width: 1200px) {
    .mc003-modal-body {
        padding: 30px;
    }

    .mc003-modal-body img {
        max-height: 70vh;
    }

    .mc003-modal-header {
        padding: 24px;
    }

    .mc003-modal-header h2 {
        font-size: 40px;
    }

    .mc003-modal-footer {
        padding: 24px;
    }

    .mc003-modal-price {
        font-size: 28px;
    }

    .mc003-modal-add-btn {
        padding: 16px 40px;
        font-size: 18px;
    }
}

.mc003-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: white;
    flex-shrink: 0;
}

.mc003-modal-price {
    font-size: 40px;
    font-weight: bold;
    color: #E4002B;
}

.mc003-modal-add-btn {
    background: #ffa544;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 32px;
    font-weight: bold;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mc003-modal-add-btn:hover {
    background: #ffa544;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 购物车侧边栏弹窗样式 */
.mc003-cart-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    /* 购物车弹窗也从顶部弹出 */
    align-items: flex-start;
    justify-content: center;
}

.mc003-cart-modal.hidden {
    display: none;
}

.mc003-cart-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.mc003-cart-content {
    /* 购物车弹窗宽度 80%，顶部弹出并居中 */
    width: 80%;
    max-width: 80%;
    margin: 60px auto 0;
    background: white;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    animation: mc003-modal-slide-down 0.25s ease-out;
}

/* 顶部弹出动效 */
@keyframes mc003-modal-slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mc003-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.mc003-cart-header h2 {
    font-size: 40px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.mc003-cart-close {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 40px;
    transition: all 0.3s ease;
}

.mc003-cart-close:hover {
    background: #e0e0e0;
    color: #333;
}

.mc003-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.mc003-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 12px;
}

.mc003-cart-item-image {
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    flex: 1;
}

.mc003-cart-item-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.mc003-cart-item-info {
    flex: 1;
}

.mc003-cart-item-name {
    font-size: 40px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.mc003-cart-item-price {
    font-size: 40px;
    color: #E4002B;
    font-weight: bold;
}

.mc003-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 4px;
    padding: 4px 8px;
}

.mc003-cart-item-qty-btn {
    /* 计数器整体放大一倍（按钮尺寸 + 字号） */
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #666;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 加号按钮：品牌色背景 */
.mc003-cart-item-qty-btn.cart-item-plus {
    background: #ffa544;
    color: #fff;
}

/* 减号按钮：无背景，浅灰色边框 */
.mc003-cart-item-qty-btn.cart-item-minus {
    background: transparent;
    border: 2px solid #d3d3d3;
    color: #666;
}

.mc003-cart-item-qty-btn:hover {
    color: #333;
}

.mc003-cart-item-qty-value {
    width: 40px;
    text-align: center;
    font-size: 40px;
    font-weight: bold;
}

.mc003-cart-footer {
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    background: white;
    flex-shrink: 0;
}

.mc003-cart-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 12px;
    font-size: 40px;
}

.mc003-cart-total-price {
    font-size: 40px;
    font-weight: bold;
    color: #E4002B;
    margin-left: 8px;
}

.mc003-cart-checkout-btn {
    width: 100%;
    background: #ffa544;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.mc003-cart-clear-btn {
    width: 100%;
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mc003-cart-clear-btn:hover {
    background: #e0e0e0;
    color: #333;
}

/* 自定义提示弹窗样式 */
.mc003-custom-alert-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc003-custom-alert-modal.hidden {
    display: none;
}

.mc003-custom-alert-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.mc003-custom-alert-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 80%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mc003-custom-alert-message {
    font-size: 40px;
    color: #333;
    text-align: center;
    line-height: 1.5;
    word-wrap: break-word;
}

.mc003-custom-alert-btn {
    background: #ffa544;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.mc003-custom-alert-btn:hover {
    background: #C80020;
}

.mc003-custom-alert-btn.cancel {
    background: #999;
}

.mc003-custom-alert-btn.cancel:hover {
    background: #777;
}
