/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f5f5f5;
    -webkit-font-smoothing: antialiased;
}

#app {
    max-width: 450px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* 导航栏 */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 450px;
    height: 46px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #f0f0f0;
    z-index: 100;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
}

.nav-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

/* 首页 */
.home-page {
    padding: 20px;
}

.header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #07c160 0%, #1e90ff 100%);
    color: white;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 8px 16px rgba(7,193,96,0.2);
}

.header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.menu-item:active {
    background: #f8f9fa;
    transform: scale(0.95);
}

.menu-item span {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
}

/* 按钮 */
.btn-large {
    height: 48px;
    font-size: 16px;
    border-radius: 24px;
}

/* 状态卡片 */
.status-card {
    margin-bottom: 24px;
}

.van-cell-group--inset {
    margin: 0;
    border-radius: 12px;
}

/* 快递标签 */
.express-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e8f3ff;
    color: #1989fa;
    border-radius: 4px;
    font-size: 12px;
}

/* 包裹列表 */
.parcel-item {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
    cursor: pointer;
}

.parcel-item:active {
    background: #f8f9fa;
}

/* 表单 */
.van-cell-group {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.van-field {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.van-field__label {
    width: 85px;
    color: #333;
    font-size: 14px;
}

.van-field__value {
    flex: 1;
}

.van-field__control {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    background: transparent;
}

.van-field__control::placeholder {
    color: #999;
}

select.van-field__control {
    padding: 8px 0;
}

/* 底部 */
.footer {
    text-align: center;
    padding: 24px 0 12px;
    color: #999;
    font-size: 12px;
    border-top: 1px solid #f0f0f0;
}

/* 扫码区域 */
#reader {
    border-radius: 12px;
    overflow: hidden;
}

/* 响应式 */
@media (max-width: 320px) {
    .menu-grid {
        gap: 8px;
    }
    
    .menu-item {
        padding: 12px 4px;
    }
}