/* 移动端仓库管理系统样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    padding-bottom: 60px;
}

/* 头部 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 18px;
    font-weight: 600;
}

.header .user-info {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
}

/* 容器 */
.container {
    padding: 15px;
    max-width: 600px;
    margin: 0 auto;
}

/* 卡片 */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* 表单 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* 权限列表 */
.permission-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.permission-item:hover {
    background: #f0f0f0;
}

.permission-item input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* 按钮 */
.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    display: inline-block;
    width: auto;
    margin-right: 8px;
}

/* 菜单网格 */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.menu-item {
    background: white;
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

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

.menu-item .icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.menu-item .text {
    font-size: 14px;
    font-weight: 600;
}

.menu-item .count {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin-top: 5px;
}

/* 列表 */
.item-list {
    margin-top: 15px;
}

.item-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.item-card .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.item-card .item-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.item-card .item-code {
    font-size: 12px;
    color: #999;
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
}

.item-card .item-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.item-card .item-quantity {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin-top: 8px;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #999;
    padding: 5px;
    transition: all 0.3s;
}

.nav-item.active {
    color: #667eea;
}

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

.nav-item .nav-text {
    font-size: 11px;
    display: block;
}

/* 搜索框 */
.search-box {
    margin-bottom: 15px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 10px;
}

/* 成功/错误消息 */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* 登录页面特殊样式 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-card .logo {
    text-align: center;
    font-size: 48px;
    margin-bottom: 10px;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 22px;
}

/* 响应式 */
@media (max-width: 375px) {
    .container {
        padding: 10px;
    }
    
    .card {
        padding: 15px;
    }
    
    .menu-grid {
        gap: 10px;
    }
}