 :root {
            --md-primary: #6750A4;
            --md-primary-dark: #5E4990;
            --md-surface: #FFFFFF;
            --md-background: #F5F5F5;
            --md-on-surface: #1C1B1F;
            --md-on-surface-secondary: #5D5966;
            --md-error: #BA1A1A;
            --md-shadow: rgba(0, 0, 0, 0.1);
            --md-shadow-light: rgba(0, 0, 0, 0.08);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Roboto', 'Noto Sans CJK SC', sans-serif;
        }

        body {
            background-color: var(--md-background);
            color: var(--md-on-surface);
            padding-bottom: 80px;
        }

        /* App Bar */
        .app-bar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: var(--md-primary);
            color: white;
            display: flex;
            align-items: center;
            padding: 0 16px;
            box-shadow: 0 2px 4px var(--md-shadow);
            z-index: 1000;
        }

        .app-bar__title {
            font-size: 18px;
            font-weight: bold;
            flex: 1;
            text-align: center;
        }

        .app-bar__btn {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }

        /* Tab Bar */
        .tab-bar {
            position: fixed;
            top: 56px;
            left: 0;
            right: 0;
            height: 48px;
            background-color: var(--md-surface);
            display: flex;
            box-shadow: 0 1px 2px var(--md-shadow-light);
            z-index: 999;
        }

        .tab-item {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: var(--md-on-surface-secondary);
            position: relative;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .tab-item.active {
            color: var(--md-primary);
            font-weight: bold;
        }

        /* 单个指示器，只显示在激活的Tab下面 */
        .tab-indicator {
            position: absolute;
            bottom: 0;
            height: 2px;
            background-color: var(--md-primary);
            transition: all 0.3s ease;
            border-radius: 1px;
            width: 60px;
        }

        /* 第一个Tab激活时的位置 */
        .tab-bar[data-active-tab="1"] .tab-indicator {
            left: calc(25% - 30px);
        }

        /* 第二个Tab激活时的位置 */
        .tab-bar[data-active-tab="3"] .tab-indicator {
            left: calc(75% - 30px);
        }

        /* Content Area */
        .content {
            margin-top: 104px;
            padding: 16px;
        }

        /* Order Card */
        .order-card {
            background: var(--md-surface);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 16px;
            box-shadow: 0 2px 4px var(--md-shadow-light);
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .order-card:active {
            background-color: #EEEEEE;
        }

        .order-card.expanded {
            margin-bottom: 8px;
        }

        .card-content {
            display: flex;
            gap: 12px;
        }

        .product-image {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            background-size: cover;
            background-position: center;
            flex-shrink: 0;
            background-color: #f0f0f0;
        }

        .product-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .product-name {
            font-size: 16px;
            font-weight: bold;
            color: var(--md-primary);
        }

        .order-meta {
            font-size: 14px;
            color: var(--md-on-surface-secondary);
        }

        .amount-section {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            justify-content: center;
            gap: 8px;
            min-width: 80px;
        }

        .amount {
            font-size: 16px;
            font-weight: bold;
            color: var(--md-primary);
        }

        .order-status {
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: bold;
        }

        .status-pending {
            background-color: #E8DEF8;
            color: var(--md-primary);
        }

        .status-cancelled {
            background-color: #FFE9E9;
            color: var(--md-error);
        }

        .status-completed {
            background-color: #E8F5E8;
            color: #2E7D32;
        }

        /* Action Buttons */
        .action-buttons {
            display: flex;
            gap: 8px;
            margin-top: 12px;
            justify-content: flex-end;
        }

        .btn {
            padding: 8px 16px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            min-width: 60px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

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

        .btn-filled {
            background-color: var(--md-primary);
            color: white;
        }

        .btn-outlined {
            background-color: transparent;
            border: 1.5px solid var(--md-primary);
            color: var(--md-primary);
        }

        .btn-error {
            background-color: transparent;
            border: 1.5px solid var(--md-error);
            color: var(--md-error);
        }

        /* Order Details */
        .order-details {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #EEEEEE;
            animation: slideDown 0.2s ease;
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            padding: 4px 0;
            font-size: 14px;
        }

        .detail-label {
            color: var(--md-on-surface-secondary);
        }

        .detail-value {
            color: var(--md-on-surface);
            font-weight: 500;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-8px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 48px 16px;
            color: #9E9E9E;
            font-size: 16px;
        }

        /* Toast */
        .toast {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 12px 24px;
            border-radius: 20px;
            font-size: 14px;
            z-index: 2000;
            animation: toastFade 2s ease-in-out;
        }

        @keyframes toastFade {
            0%, 100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
            20%, 80% { opacity: 1; transform: translateX(-50%) translateY(0); }
        }

        /* Loading */
        .loading {
            text-align: center;
            padding: 20px;
            color: var(--md-on-surface-secondary);
        }

        /* Bottom Navigation */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--md-surface);
            display: flex;
            padding: 8px 0;
            box-shadow: 0 -2px 8px var(--md-shadow-light);
            z-index: 1000;
        }

        .nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: var(--md-on-surface-secondary);
            transition: color 0.3s ease;
        }

        .nav-item.active {
            color: var(--md-primary);
        }

        .nav-icon {
            font-size: 24px;
            margin-bottom: 2px;
        }

        .nav-label {
            font-size: 12px;
        }

        /* Content Transition */
        .content-transition {
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }























/* 底部导航栏样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #FFFFFF;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    display: flex;
    z-index: 1000;
    border-top: 1px solid #E0E0E0;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #8A8A8F;
    position: relative;
    transition: all 0.2s ease;
}
/*核心：激活状态类名*/
.nav-item.active {
    color: #6750A4;/*激活时的文字颜色*/
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 24px;
    height: 3px;
    background-color: #6750A4;/*激活时的底部指示条*/
    border-radius: 2px;
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.nav-item.active .nav-icon {
    transform: scale(1.1);/*激活时图标放大*/
}

.nav-label {
    font-size: 12px;
    font-weight: 500;
}

