/* 轮播图样式 */
.banner-swiper {
    position: relative;
    width: calc(100% - 20px);
    height: 180px;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    margin: 10px;
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.swiper-slide {
    min-width: 100%;
    height: 180px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.swiper-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.swiper-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
    cursor: pointer;
}

.swiper-dot.active {
    width: 20px;
    border-radius: 4px;
    background: #fff;
}

/* 分类导航样式 */
.menu-categories {
    display: flex;
    overflow-x: auto;
    background: #fff;
    padding: 8px 10px;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 99;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.menu-categories::-webkit-scrollbar {
    display: none;
}

.category-item {
    padding: 6px 12px;
    margin-right: 6px;
    background: #f5f5f5;
    border-radius: 16px;
    white-space: nowrap;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-item:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

.category-item.active {
    background: linear-gradient(135deg, #007AFF, #0056b3);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

/* 滚动公告样式 */
.notice-bar {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #FFE5B4, #FFD700);
    padding: 10px 12px;
    gap: 10px;
    overflow: hidden;
    margin: 0 10px 10px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.notice-icon {
    font-size: 18px;
    flex-shrink: 0;
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

.notice-content {
    flex: 1;
    overflow: hidden;
}

.notice-text {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 15s linear infinite;
    font-size: 13px;
    color: #8B4513;
    font-weight: 600;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.notice-text:hover {
    animation-play-state: paused;
}

/* 菜品列表样式 */
.menu-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
    padding-bottom: 80px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.3s ease-out;
}

.menu-item:active {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: scale(0.98);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 菜品图片样式 */
.menu-image-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
    margin-bottom: 8px;
}

.menu-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    background: #f5f5f5;
}

.menu-image.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-image.loaded {
    opacity: 1;
}


/* 菜品信息样式 */
.menu-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-desc {
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.menu-price {
    color: #ff5252;
    font-size: 12px;
    font-weight: 600;
}

.price-value {
    font-size: 16px;
    font-weight: 700;
}

/* 菜品操作按钮样式 */
.menu-actions {
    display: flex;
    align-items: center;
}

.add-cart-btn {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #007AFF, #0056b3);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,122,255,0.35);
}

.add-cart-btn:active {
    transform: scale(0.9);
}

.add-cart-btn:active {
    transform: scale(0.95);
}

.add-cart-btn.adding {
    animation: pulse 0.3s ease-in-out;
}

.add-cart-btn.added {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    animation: success 0.6s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes success {
    0% { transform: scale(1); }
    50% { transform: scale(1.3) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.btn-icon {
    font-weight: 300;
    line-height: 1;
}

/* 加载骨架屏样式 */
.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
}

.skeleton-item {
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 16px;
}

.skeleton-image {
    height: 250px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 16px;
    margin-bottom: 15px;
}

.skeleton-text {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 60%;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
}

/* 购物车浮动按钮 */
.cart-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: linear-gradient(135deg, #007AFF, #0056b3);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 6px 20px rgba(0,122,255,0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0,122,255,0.5);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* 购物车页面头部 */
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.cart-header .back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-header .back-btn:hover {
    background: #e8e8e8;
    transform: scale(1.05);
}

.cart-header .back-btn:active {
    transform: scale(0.95);
}

.cart-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.clear-btn {
    padding: 8px 16px;
    border: none;
    background: linear-gradient(135deg, #ff5252, #ff3838);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 82, 82, 0.3);
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.4);
}

.clear-btn:active {
    transform: translateY(0);
}

/* 购物车列表 */
.cart-list {
    padding: 15px;
    padding-bottom: 100px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #fff;
    border-radius: 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.3s ease-out;
    position: relative;
}

.cart-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.cart-item.updating {
    opacity: 0.6;
    pointer-events: none;
}

.cart-item.deleting {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

.cart-item-image {
    width: 90px;
    height: 90px;
    margin-right: 15px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-price {
    color: #ff5252;
    font-size: 18px;
    font-weight: 700;
}

/* 数量控制 */
.cart-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 10px;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 24px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    color: #007AFF;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.qty-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.qty-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #e8e8e8;
}

.qty-minus {
    font-weight: 600;
}

.qty-plus {
    font-weight: 600;
}

.qty-value {
    min-width: 30px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* 删除按钮 */
.delete-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: linear-gradient(135deg, #ff5252, #ff3838);
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(255, 82, 82, 0.3);
}

.delete-btn:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.4);
}

.delete-btn:active {
    transform: rotate(90deg) scale(0.95);
}

/* 空购物车状态 */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-text {
    font-size: 16px;
    color: #999;
    margin-bottom: 30px;
}

.empty-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, #007AFF, #0056b3);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,122,255,0.3);
}

.empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,122,255,0.4);
}

.empty-btn:active {
    transform: translateY(0);
}

/* 结算栏 */
.cart-total-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 100;
}

.total-info {
    flex: 1;
}

.total-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}

.total-amount {
    font-size: 28px;
    font-weight: 700;
    color: #ff5252;
}

.checkout-btn {
    padding: 14px 36px;
    background: linear-gradient(135deg, #007AFF, #0056b3);
    color: #fff;
    border: none;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,122,255,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,122,255,0.4);
}

.checkout-btn:active {
    transform: translateY(0);
}

/* 订单页面头部 */
.order-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
    font-size: 18px;
    font-weight: 600;
}

/* 订单状态筛选标签 */
.order-tabs {
    display: flex;
    background: #fff;
    padding: 10px 15px;
    border-bottom: 1px solid #e5e5e5;
    overflow-x: auto;
    position: sticky;
    top: 50px;
    z-index: 99;
    -webkit-overflow-scrolling: touch;
}

.order-tabs::-webkit-scrollbar {
    display: none;
}

.order-tab {
    padding: 10px 20px;
    margin-right: 12px;
    background: #f5f5f5;
    border-radius: 28px;
    white-space: nowrap;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-tab:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

.order-tab.active {
    background: linear-gradient(135deg, #007AFF, #0056b3);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* 订单列表 */
.order-list {
    padding: 15px;
    padding-bottom: 80px;
}

/* 订单卡片 */
.order-card {
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.3s ease-out;
}

.order-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.order-no {
    font-size: 13px;
    color: #666;
}

.order-status {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.status-1 {
    background: #fff3e0;
    color: #ff9800;
}

.status-2 {
    background: #e3f2fd;
    color: #2196f3;
}

.status-3 {
    background: #f3e5f5;
    color: #9c27b0;
}

.status-4 {
    background: #e8f5e9;
    color: #4caf50;
}

.status-5 {
    background: #ffebee;
    color: #f44336;
}

.order-card-body {
    margin-bottom: 12px;
}

.order-info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-label {
    margin-right: 8px;
    font-size: 16px;
}

.info-text {
    flex: 1;
    color: #666;
    line-height: 1.5;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-time {
    font-size: 12px;
    color: #999;
}

.order-amount {
    font-size: 18px;
    font-weight: 700;
    color: #ff5252;
}

/* 空订单状态 */
.empty-order {
    text-align: center;
    padding: 80px 20px;
}

.empty-order .empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-order .empty-text {
    font-size: 16px;
    color: #999;
}

.profile-section {
    padding: 15px;
}

.profile-item {
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.address-list {
    padding: 15px;
}

.address-item {
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.address-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.address-phone {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.address-detail {
    font-size: 14px;
    color: #999;
}

.login-container {
    padding: 40px 20px;
}

.login-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: #007AFF;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: #007AFF;
    cursor: pointer;
}

/* 结算页面头部 */
.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
    font-size: 18px;
    font-weight: 600;
}

/* 结算页面内容 */
.checkout-content {
    padding-bottom: 100px;
}

.checkout-section {
    background: #fff;
    margin-bottom: 10px;
    padding: 15px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.section-icon {
    font-size: 20px;
    margin-right: 8px;
}

.section-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.section-link {
    font-size: 14px;
    color: #007AFF;
    text-decoration: none;
}

/* 地址卡片 */
.address-card {
    padding: 16px;
    border: 2px solid #e5e5e5;
    border-radius: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.address-card:hover {
    border-color: #007AFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
}

.address-card.selected {
    border-color: #007AFF;
    background: #f0f8ff;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.2);
}

.address-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.address-card-header .address-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.address-card-header .address-phone {
    font-size: 14px;
    color: #666;
}

.default-badge {
    padding: 2px 8px;
    background: #007AFF;
    color: #fff;
    border-radius: 10px;
    font-size: 12px;
}

.address-card-body {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.selected-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    background: #007AFF;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.empty-address {
    text-align: center;
    padding: 40px 20px;
}

.empty-address .empty-text {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.add-address-btn {
    padding: 12px 36px;
    background: linear-gradient(135deg, #007AFF, #0056b3);
    color: #fff;
    border: none;
    border-radius: 26px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.add-address-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}

/* 订单商品列表 */
.order-item-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item-row:last-child {
    border-bottom: none;
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}

.item-spec {
    font-size: 13px;
    color: #999;
}

.item-total {
    font-size: 16px;
    font-weight: 600;
    color: #007AFF;
}

/* 备注输入框 */
.remark-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 14px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f8f8;
}

.remark-input:focus {
    border-color: #007AFF;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

/* 价格明细 */
.price-detail {
    background: #f8f8f8;
    padding: 16px;
    border-radius: 16px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-row.total-row {
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.final-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff5252;
}

/* 结算底部栏 */
.checkout-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.footer-info {
    flex: 1;
}

.footer-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.footer-price {
    font-size: 24px;
    font-weight: 700;
    color: #ff5252;
}

.submit-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, #007AFF, #0056b3);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,122,255,0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,122,255,0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn.submitting {
    background: linear-gradient(135deg, #999, #666);
}

.submit-btn.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

/* 商品详情页样式 */
.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.detail-header .back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
    transition: all 0.3s;
}

.detail-header .back-btn:hover {
    background: #e8e8e8;
    transform: scale(1.05);
}

.detail-header .back-btn:active {
    transform: scale(0.95);
}

.header-placeholder {
    width: 40px;
}

.detail-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.detail-content {
    padding-bottom: 100px;
}

.detail-image-wrapper {
    padding: 15px;
    background: #fff;
}

.detail-content .detail-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.detail-content .detail-info {
    padding: 20px;
    background: #fff;
    margin-top: 10px;
}

.detail-content .detail-name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.detail-content .detail-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.detail-price-section {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 16px;
    background: linear-gradient(135deg, #fff5f5, #ffe5e5);
    border-radius: 12px;
}

.price-label {
    font-size: 14px;
    color: #999;
}

.detail-content .detail-price {
    font-size: 32px;
    font-weight: 700;
    color: #ff5252;
}

.detail-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.footer-left {
    display: flex;
    flex-direction: column;
}

.detail-footer .footer-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.detail-footer .footer-price {
    font-size: 28px;
    font-weight: 700;
    color: #ff5252;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f5f5;
    padding: 8px 16px;
    border-radius: 24px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    color: #007AFF;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quantity-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-value {
    min-width: 30px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    transition: transform 0.2s;
}

.detail-footer .order-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #007AFF, #0056b3);
    color: #fff;
    border: none;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-footer .order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}

.detail-footer .order-btn:active {
    transform: translateY(0);
}

.detail-footer .order-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.detail-footer .order-btn.loading {
    background: linear-gradient(135deg, #999, #666);
}

.detail-footer .order-btn.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}
