/* 导航栏专用样式 - 确保严格375px宽度 */
nav.fixed {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 375px;
    max-width: 375px;
    margin: 0 auto;
    padding: 0.25rem 1rem;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    box-sizing: border-box;
}

/* 确保导航栏内容不超出 */
nav.fixed .flex {
    max-width: 100%;
    overflow: hidden;
}

/* 底部导航栏样式 */
.fixed-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 375px;
    background-color: white;
    border-top: 1px solid #E5E7EB;
    z-index: 40;
}

.ios-nav-item {
    position: relative;
    transition: all 0.3s ease;
}

.ios-nav-item:active {
    opacity: 0.7;
}

.text-iosGray-500 {
    color: #8E8E93;
}

body {
    width: 375px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    background-color: #FAFAFA;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding-bottom: 50px;
}

html {
    background-color: #E5E5E5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.relative.min-h-screen {
    width: 375px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.content-container {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 375px;
    bottom: 50px;
    overflow: hidden;
    background-color: #FAFAFA;
}

.content-wrapper {
    display: flex;
    width: 1500px;
    transition: transform 0.3s ease;
    height: 100%;
}

.content-page {
    width: 375px;
    flex-shrink: 0;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    box-sizing: border-box;
}

.space-y-4 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    min-height: 100%;
}

.order-card {
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    background-color: white;
    box-sizing: border-box;
}

:where([class^="ri-"])::before { content: "\f3c2"; }
.status-indicator {
    height: 3px;
    transition: all 0.3s ease;
    position: absolute;
    bottom: 0;
    width: 12px;
}
.order-status {
    color: #4A90E2;
}
.tab-active {
    color: #4A90E2;
    font-weight: 500;
    transition: all 0.3s ease;
}
.tab-inactive {
    color: #999;
    transition: all 0.3s ease;
}
.countdown {
    color: #FF6B6B;
}
.process-step {
    position: relative;
}
.process-step.active {
    color: #4A90E2;
}
.process-step.completed {
    color: #4A90E2;
}
.process-step.inactive {
    color: #D1D5DB;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.order-card:active {
    transform: scale(0.98);
}
.order-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}
.order-tag-ongoing {
    background-color: rgba(74, 144, 226, 0.1);
    color: #4A90E2;
}
.order-tag-completed {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27AE60;
}
.order-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.05), transparent);
    margin: 8px 0;
}
.pet-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #F0F7FF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}

/* 添加标签切换动画 */
.flex-1 {
    cursor: pointer;
    transition: all 0.3s ease;
}
.flex-1:hover {
    background-color: rgba(74, 144, 226, 0.05);
}
.status-indicator {
    transition: all 0.3s ease;
}
.status-indicator.bg-primary {
    background-color: #4A90E2;
    transform: scaleX(1);
}
.status-indicator.bg-transparent {
    background-color: transparent;
    transform: scaleX(0);
}

/* 添加新的样式 */
.tab-container {
    position: relative;
    overflow: hidden;
}
.tab-container .flex-1 {
    position: relative;
    z-index: 1;
}
.tab-container .status-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25%;
    height: 3px;
    background-color: #4A90E2;
    transition: transform 0.3s ease;
}
.tab-active {
    color: #4A90E2;
    font-weight: 500;
}
.tab-inactive {
    color: #999;
}

.order-card .p-4 {
    padding: 12px;
}

.order-card .my-3 {
    margin-top: 8px;
    margin-bottom: 8px;
}

.order-card .mt-3 {
    margin-top: 8px;
}

.order-card .mb-3 {
    margin-bottom: 8px;
}

.order-card .py-2 {
    padding-top: 6px;
    padding-bottom: 6px;
}

.order-card .px-4 {
    padding-left: 12px;
    padding-right: 12px;
}